Skip to content

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
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants