Perl-OpenMP / p5-Alien-OpenMP

Portable buildopt interface to OpenMP enabled compiler flags and other things.
1 stars 4 forks source link

support macosx #3

Open oodler577 opened 3 years ago

oodler577 commented 3 years ago

clang presents itself as gcc and even claims to support -fopenmp, but fails on the only MacOS X platform I currently have access to.

gcc installed via brew works (it's in /usr/local/bin) but it's actually gcc.

some links, will need to add more https://github.com/Microsoft/LightGBM/issues/3 https://clang-omp.github.io/

oodler577 commented 3 years ago

fyi, @mohawk2

oodler577 commented 3 years ago

fwiw, here is the perl5 ci YAML: https://github.com/Perl/perl5/blob/blead/.github/workflows/testsuite.yml

zmughal commented 3 years ago

Adding some other tools' OpenMP compiler detection configs for comparison:

oodler577 commented 3 years ago

thank you @zmughal !

kiwiroy commented 2 years ago

For CMake -DOpenMP_EXE_LINKER_FLAGS= has also been used in the past https://stackoverflow.com/a/12404666/7456461

oodler577 commented 2 years ago

@kiwiroy - mind evaluating how close this is to being "done"? I think you made things work on MacOS iirc? I'm fine closing this issue on account of that, and if necessary creating a more specific one if needed.

mohawk2 commented 2 years ago

This appears to have been fixed in #11 in Oct 2021?

kiwiroy commented 2 years ago

I believe this should be closed. CI runs are successfully building on macOS. Any other reports can be made into new issues for this platform.