-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
Build flag to force enable/disable OpenMP #13390
Copy link
Copy link
Closed
Labels
EasyWell-defined and straightforward way to resolveWell-defined and straightforward way to resolve
Milestone
Description
It would be nice to have a build flag in setup.py to control whether OpenMP is used or not. There are a few cases where users might want to control this.
Currently on macOS if the system GCC is picked up, it tries to enable OpenMP, which doesn't necessarily work. Also the current build assumes that OpenMP is not supported when using Clang on macOS, but this depends on whether Apple Clang is used or some other Clang build, which does support OpenMP.
When GCC is used, then GOMP is in use, which has been shown to be not fork safe. So users may decide that they would rather not build with OpenMP support when using this compiler or when they know they plan to fork.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EasyWell-defined and straightforward way to resolveWell-defined and straightforward way to resolve