Skip to content
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

Merged
merged 7 commits into from
Sep 8, 2020
Merged

Conversation

tvolkmer
Copy link
Contributor

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.

@tvolkmer tvolkmer added this to the 3.5.3 milestone Aug 26, 2020
@tvolkmer tvolkmer self-assigned this Aug 26, 2020
@@ -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."
Copy link
Member

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

Copy link
Contributor Author

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
Copy link
Member

@felixbartel felixbartel left a 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
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants