Skip to content

Commit 66524ee

Browse files
authored
[OpenMP] Document how to specify flags to device libraries (#159053)
Add an explanation on how to use RUNTIMES_<triple>_CMAKE_CXX_FLAGS in order to specify different compiler flags for OpenMP device libraries.
1 parent 2262553 commit 66524ee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

openmp/docs/SupportAndFAQ.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ Support for the device library comes from a separate build of the OpenMP library
8282
that targets the GPU architecture. Building it requires enabling the runtime
8383
targets, or setting the target manually when doing a standalone build. This is
8484
done with the ``LLVM_RUNTIME_TARGETS`` option and then enabling the OpenMP
85-
runtime for the GPU target. ``RUNTIMES_<triple>_LLVM_ENABLE_RUNTIMES``. Refer to
86-
the cache file for the specific invocation.
85+
runtime for the GPU target via ``RUNTIMES_<triple>_LLVM_ENABLE_RUNTIMES``.
86+
It's possible to set different flags for each device library by using
87+
``RUNTIMES_<triple>_CMAKE_CXX_FLAGS``. Refer to the cache file for the specific
88+
invocation.
8789

8890
For Nvidia offload, please see :ref:`build_nvidia_offload_capable_compiler`.
8991
For AMDGPU offload, please see :ref:`build_amdgpu_offload_capable_compiler`.

0 commit comments

Comments
 (0)