-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More OpenMP usage in equations and integrators.
Earlier we only used OpenMP for the Equation's `loop` and `loop_all` methods. This is not optimal as the number of cores increase. With 12-20 core machines being routinely available it makes sense to use OpenMP as much as possible and so now all the equation methods, `initialize`, `initialize_pair`, `post_loop` in addition to the original `loop/loop_all` are executed in parallel. In addition, the integrator steps are also executed in parallel. This should give us much better scale up with more cores. Note that in the code, the loops do not set nogil=True since they are already in a block where the gil is released. This PR requires the latest version of compyle with pypr/compyle#37 merged.
- Loading branch information
1 parent
3264b48
commit 4415d90
Showing
4 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters