[Openmp-commits] [openmp] [OFFLOAD] Add support for SPIRV to ompx (PR #179849)
via Openmp-commits
openmp-commits at lists.llvm.org
Wed Feb 4 18:52:02 PST 2026
https://github.com/fineg74 created https://github.com/llvm/llvm-project/pull/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
>From 80a2890fb7da651e37e0b3dbf46a3f4e8b0e4663 Mon Sep 17 00:00:00 2001
From: "Fine, Gregory" <gregory.fine at intel.com>
Date: Wed, 4 Feb 2026 18:43:08 -0800
Subject: [PATCH] Add support for SPIRV to ompx
---
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 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