-
Notifications
You must be signed in to change notification settings - Fork 43
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
Shipping openmp
with clang
#71
Comments
There is a package for macOS. It's called |
Ok, so actually I didn't know how it was named in One of the most common questions that we get in conda-forge when building numeric code is how to enable OpenMP support. Our solutions have varied from use Compare this to other platforms. When a user builds a recipes with say |
Friendly nudge 😉 |
There is a plan to upgrade the llvm compilers soon. If @mingwandroid agrees, the changes suggested by you may be considered during the upgrade. 😜 |
I'd actually rather we split libgomp from GCC! But I don't really mind either way as in defaults we are adding llvm-openmp for macOS in a few places and it's pretty ugly. |
The reason for splitting is in case anyone wants to do a matrix build against different implementations but then again that's probably too much work for all of us! |
Well if we can have a consistent solution between macOS and Linux, that would be very helpful. A split friendly option might be to have To make sure I understand, do you mean mixing GOMP with the LLVM toolchain or vice versa for GCC? Assuming I'm understanding this correctly, what are the use cases for this? |
There no technical reason to tie the compiler used to openmp implementation that I'm aware of. That is all. We're looking into llvm/clang for Linux for example.. |
As a note, people are needing to add the https://github.com/conda-forge/nfft-feedstock/pull/10/files#diff-44a73bcc045c193c3bd45da87994b03b |
Hi @jakirkham, nfft is doing it wrong; this is an example of how to correctly use
|
There's one gotcha, llvm-openmp needs to go into build and run requirements, but that's not a big deal IMHO. |
Adding it to |
It appears that
openmp
does not ship withclang
fromdefaults
(particularly on macOS). In contrast, it does ship withgcc
fromdefaults
(particularly on Linux). It would be nice to have OpenMP enabled compilers ship bydefault
on all OSes and have the OpenMP run time libraries automatically included as well (when using{{ compiler(...) }}
).The text was updated successfully, but these errors were encountered: