[Openmp-commits] [openmp] 66524ee - [OpenMP] Document how to specify flags to device libraries (#159053)

via Openmp-commits openmp-commits at lists.llvm.org
Tue Sep 16 14:48:30 PDT 2025


Author: Tulio Magno Quites Machado Filho
Date: 2025-09-16T16:48:26-05:00
New Revision: 66524ee7d0fd0f932924f1927459d68d6375fdc3

URL: https://github.com/llvm/llvm-project/commit/66524ee7d0fd0f932924f1927459d68d6375fdc3
DIFF: https://github.com/llvm/llvm-project/commit/66524ee7d0fd0f932924f1927459d68d6375fdc3.diff

LOG: [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.

Added: 
    

Modified: 
    openmp/docs/SupportAndFAQ.rst

Removed: 
    


################################################################################
diff  --git a/openmp/docs/SupportAndFAQ.rst b/openmp/docs/SupportAndFAQ.rst
index 2684d20c5b0b6..f5a84784c8de8 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 
diff erent 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`.


        


More information about the Openmp-commits mailing list