-
Notifications
You must be signed in to change notification settings - Fork 488
Update omp detection for macOS #15040
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
Conversation
Updated OpenMP detection for macOS with hints to brew library paths and set required compile flags.
|
REQUEST FOR PRODUCTION RELEASES: This will add The following labels are available |
Added copyright and licensing information to FindOpenMPMacOS.cmake.
dependencies/FindOpenMPMacOS.cmake
Outdated
| NAMES omp libomp | ||
| HINTS | ||
| /opt/homebrew/opt/libomp/lib | ||
| /opt/homebrew/lib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not have "/opt/homebrew/lib" or "/usr/local/lib" in the hints. If that happens to be selected, then it becomes impossible to override single packages. I would prefer if the OpenMP support and detection is driven from the outside.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks. Just to understand /opt/homebrew/opt/libomp/lib is fine though, no right? How do you imagine the support be driven from the outside, in the recipe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, /opt/homebrew/opt/libomp/lib is fine. For support driven from the outside I mean via some -DOPENMP_DIR=$(brew --prefix libomp)
ktf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comment. Do not provide hints pointing to common system folders.
|
@ktf, I removed the system paths, the failure in o2_slc9 is not clear to me since the the log shows that everything is good. |
Updated OpenMP detection for macOS with hints to brew/usr library paths and set required compile flags. This correctly picks it up at least on my system.