You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In RAJA, we required CMake 3.14.5 as the min cmake version (default on LC systems). Then, we specified OpenMP compiler flags for OpenMP target offload builds using, for example for clang:
That is, we need to over-ride BLT logic for setting OpenMP complier and linker flags and force the flag settings to get the code to build and link. Fortunately, BLT gave us a way to do that.
Anyway, is this expected? Is there anything that can be done in BLT to simplify this cmake version dependency? Or, is there a better way we can handle this in our code?
The text was updated successfully, but these errors were encountered:
We are going to revamp the OpenMP targets very soon to use the true CMake targets. Sadly yes this is expected. The CMake openmp targets didn't exist originally (or didn't work properly I can't remember). The current generator expressions are less than ideal but that is how you override it.
In RAJA, we required CMake 3.14.5 as the min cmake version (default on LC systems). Then, we specified OpenMP compiler flags for OpenMP target offload builds using, for example for clang:
-DOpenMP_CXX_FLAGS="-fopenmp;-fopenmp-targets=nvptx64-nvidia-cuda"
In the last release, we bumped the min cmake version requirement to 3.20. Now, to build and link with OpenMP target offload, we need to use:
-DBLT_OPENMP_COMPILE_FLAGS="-fopenmp;-fopenmp-targets=nvptx64-nvidia-cuda" -DBLT_OPENMP_LINK_FLAGS="-fopenmp;-fopenmp-targets=nvptx64-nvidia-cuda"
That is, we need to over-ride BLT logic for setting OpenMP complier and linker flags and force the flag settings to get the code to build and link. Fortunately, BLT gave us a way to do that.
Anyway, is this expected? Is there anything that can be done in BLT to simplify this cmake version dependency? Or, is there a better way we can handle this in our code?
The text was updated successfully, but these errors were encountered: