From e0293fc7a55aa880d1bb67d31775bdbe85c672d1 Mon Sep 17 00:00:00 2001 From: fineg74 <61437305+fineg74@users.noreply.github.com> Date: Fri, 13 Feb 2026 04:55:44 -0800 Subject: [PATCH] [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 --- openmp/runtime/src/include/ompx.h.var | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmp/runtime/src/include/ompx.h.var b/openmp/runtime/src/include/ompx.h.var index 6884745f4240..a79ec34b81fa 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 #define __OMPX_TARGET_IS_GPU #endif