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

Use OpenMP in Cython wrappers #58

Closed
astrofrog opened this issue Oct 2, 2017 · 0 comments · Fixed by #59
Closed

Use OpenMP in Cython wrappers #58

astrofrog opened this issue Oct 2, 2017 · 0 comments · Fixed by #59

Comments

@astrofrog
Copy link
Member

astrofrog commented Oct 2, 2017

Cython provides a way via prange to use OpenMP which we could use to speed up calculations since our loops are embarassingly parallel:

http://cython.readthedocs.io/en/latest/src/userguide/parallelism.html

The main trick will be to figure out how to determine whether the -fopenmp flag can be safely used in setup.py (this is not supported by all compilers)

(related to #22)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant