-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Windows: Disable OpenMP #29
Conversation
The OpenMP implementation of most of the Conda-Forge software stack is using MSVC's OpenMP runtime (limited to OpenMP 2.0). This is also what is used in blosc in our dependencies. When we compile WarpX, we need a newer OpenMP (4.0+), which is why we compiled with LLVM. Unfortunately, the LLVM OpenMP runtime and MSVC runtime cannot be loaded at the same time and thus crash if we perform I/O operations. For now, we just disable OpenMP for WarpX builds. In the future, Microsoft might upgrade their OpenMP runtime: https://devblogs.microsoft.com/cppblog/improved-openmp-support-for-cpp-in-visual-studio/
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
@conda-forge-admin, please rerender |
…a-forge-pinning 2021.10.12.12.38.27
MSVC build:
So we keep using LLVM (but w/o OpenMP). |
@conda-forge-admin, please rerender |
Hi! This is the friendly automated conda-forge-webservice. |
Forgot to redeclare the dependency in conda-forge#31 (see conda-forge#29).
The OpenMP implementation of most of the Conda-Forge software stack is using MSVC's OpenMP runtime (limited to OpenMP 2.0). This is also what is used in blosc in our dependencies.
When we compile WarpX, we need a newer OpenMP (4.0+), which is why we compiled with LLVM. Unfortunately, the LLVM OpenMP runtime and MSVC runtime cannot be loaded at the same time and thus crash if we perform I/O operations (ref.: ECP-WarpX/WarpX#1776).
For now, we just disable OpenMP for WarpX builds. In the future, Microsoft might upgrade their OpenMP runtime:
https://devblogs.microsoft.com/cppblog/improved-openmp-support-for-cpp-in-visual-studio/
Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)