[Openmp-commits] [openmp] e0293fc - [OFFLOAD] Add support for SPIRV to ompx (#179849)

via Openmp-commits openmp-commits at lists.llvm.org
Fri Feb 13 04:55:49 PST 2026


Author: fineg74
Date: 2026-02-13T06:55:44-06:00
New Revision: e0293fc7a55aa880d1bb67d31775bdbe85c672d1

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

LOG: [OFFLOAD] Add support for SPIRV to ompx (#179849)

After adding support to build device RTL for SPIRV, this PR will make an
ompx to use the DeviceRTL API when compiled for SPIRV

Added: 
    

Modified: 
    openmp/runtime/src/include/ompx.h.var

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/include/ompx.h.var b/openmp/runtime/src/include/ompx.h.var
index 6884745f4240c..a79ec34b81fa2 100644
--- a/openmp/runtime/src/include/ompx.h.var
+++ b/openmp/runtime/src/include/ompx.h.var
@@ -9,7 +9,7 @@
 #ifndef __OMPX_H
 #define __OMPX_H
 
-#if (defined(__NVPTX__) || defined(__AMDGPU__))
+#if (defined(__NVPTX__) || defined(__AMDGPU__) || defined(__SPIRV__))
 #include <gpuintrin.h>
 #define __OMPX_TARGET_IS_GPU
 #endif


        


More information about the Openmp-commits mailing list