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

Please fix OpenMP support detection on macOS #6409

Closed
barracuda156 opened this issue Aug 27, 2024 · 1 comment · Fixed by #6418
Closed

Please fix OpenMP support detection on macOS #6409

barracuda156 opened this issue Aug 27, 2024 · 1 comment · Fixed by #6418
Milestone

Comments

@barracuda156
Copy link

The code in configure for OpenMP on macOS is incorrect: it assumes Clang with libopm, so the check fails with GCC, where OpenMP is supported in fact. Instead, compiler should be checked first: if GCC is detected, OpenMP should be set to supported, and only Clang needs a test, because it may or may not have libomp.

barracuda156 referenced this issue Aug 27, 2024
* improve OpenMP detection on macOS

* detect LLVM OpenMP builds

* remove some comments

* define _OPENMP when using LLVM libomp

* fix nesting for 'echo no'

* let openmp warning stand out a bit more

* Always redirect to config.log, not /dev/null

* NEWS

* Restore deletion of all test-omp* artefacts

* try and reduce diff by restoring comment

* reduce diff: delete in same order

* annotate 'fi' for readability

---------

Co-authored-by: Michael Chirico <[email protected]>
@MichaelChirico MichaelChirico added this to the 1.16.2 milestone Aug 27, 2024
@barracuda156
Copy link
Author

Thank you!

MichaelChirico added a commit that referenced this issue Aug 30, 2024
* also check plain '-fopenmp' for gcc (closes #6409)

* update NEWS

* cite in NEWS

---------

Co-authored-by: Michael Chirico <[email protected]>
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.

2 participants