-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feature/set num threads #113
Conversation
@@ -216,7 +216,7 @@ function Base.setproperty!(p::NFCTplan{D},v::Symbol,val) where {D} | |||
elseif v == :plan | |||
@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
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_THREADS
sometimes.