[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
This commit is contained in:
fineg74 2026-02-13 04:55:44 -08:00 committed by GitHub
parent 741a4daa84
commit e0293fc7a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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