Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix for slow twiddles on small domain sizes #557

Open
wants to merge 4 commits into
base: V2
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions icicle/src/ntt/kernel_ntt.cu
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,14 @@ namespace mxntt {
{
CHK_INIT_IF_RETURN();

if (log_size < 4) {
// TODO: should throw exception
// TODO: fast twiddles should be used only with mixed radix ntt
// THROW_ICICLE_ERR(IcicleError_t::InvalidArgument, "log_size must be >= 4");
printf("warning: log_size must be at least 4, got %d\n", log_size); // TODO: logging
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"warning: when using fast twiddles, log_size must be at least 4..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

umm, throwing would be a breaking change

return cudaSuccess;
}

S* w6_table;
S* w12_table;
S* w18_table;
Expand Down
Loading