[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:
parent
741a4daa84
commit
e0293fc7a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue