diff options
| author | Tulio Magno Quites Machado Filho <tuliom@redhat.com> | 2025-09-16 18:48:26 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-16 16:48:26 -0500 |
| commit | 66524ee7d0fd0f932924f1927459d68d6375fdc3 (patch) | |
| tree | cbb376652e78b5fe65d9b40fdb0211a84ebc3651 /openmp | |
| parent | 22625538cb13df55cc2ff71831f55b8042f9a26c (diff) | |
[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.
Diffstat (limited to 'openmp')
| -rw-r--r-- | openmp/docs/SupportAndFAQ.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openmp/docs/SupportAndFAQ.rst b/openmp/docs/SupportAndFAQ.rst index 2684d20c5b0b..f5a84784c8de 100644 --- a/openmp/docs/SupportAndFAQ.rst +++ b/openmp/docs/SupportAndFAQ.rst @@ -82,8 +82,10 @@ Support for the device library comes from a separate build of the OpenMP library that targets the GPU architecture. Building it requires enabling the runtime targets, or setting the target manually when doing a standalone build. This is done with the ``LLVM_RUNTIME_TARGETS`` option and then enabling the OpenMP -runtime for the GPU target. ``RUNTIMES_<triple>_LLVM_ENABLE_RUNTIMES``. Refer to -the cache file for the specific invocation. +runtime for the GPU target via ``RUNTIMES_<triple>_LLVM_ENABLE_RUNTIMES``. +It's possible to set different flags for each device library by using +``RUNTIMES_<triple>_CMAKE_CXX_FLAGS``. Refer to the cache file for the specific +invocation. For Nvidia offload, please see :ref:`build_nvidia_offload_capable_compiler`. For AMDGPU offload, please see :ref:`build_amdgpu_offload_capable_compiler`. |
