We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c8a0851 + 33e095d commit d2c5ff5Copy full SHA for d2c5ff5
docs/user-guide/gpu.md
@@ -217,6 +217,19 @@ fail to compile with some compilers. Under `PrgEnv-cray` an explicit
217
description of supported OpenMP features can be viewed using the
218
command `man intro_openmp`.
219
220
+##### Compiling with CMake
221
+
222
+When using the `CMake` build system with the Cray/GPU compilers the generated
223
+link line may not correctly link OpenMP - see https://gitlab.kitware.com/cmake/cmake/-/issues/26129.
224
+A potential solution is to add code equivalent to:
225
226
+```
227
+if(${CMAKE_Fortran_COMPILER_ID} STREQUAL "Cray")
228
+ target_link_options(<target> INTERFACE -h omp)
229
+endif()
230
231
232
+to your CMake program (C/C++ linkers should use `-fopenmp`).
233
234
#### HIP
235
0 commit comments