-
Notifications
You must be signed in to change notification settings - Fork 49
Feature/set num threads #113
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
Conversation
| @warn "You can't modify the C pointer to the NFCT plan." | ||
| elseif v == :num_threads | ||
| @warn "You can't currently modify the number of threads." | ||
| @warn "You can't currently modify the number of threads of the NFCT plan. Use NFCT.set_num_threads(nthreads) instead." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't you put the code from line 343 here? I guess it might be easier to modify the calue directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally, I wanted to add the set_num_threads to the plan exactly there. However, I decided against it, since this is not a plan-specific setting but a global setting for the whole runtime.
* So we use gcc9 and julia out of the box * Install only necessary msys packages
There seems to be a dependency problem with clang7 and llvm10 in focal. This also moves tests with nonstandard window functions to the end
felixbartel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it with Julia and everything worked! Handling global variables is still a mess.
Use precision independent nfft functions in fastsum
Added possibility to set number of OpenMP threads for Julia and Matlab interface. In particular, Matlab seems to ignore the environment variable
OMP_NUM_THREADSsometimes.