File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ RPC_ATTRS void sleep_briefly() {
157157 asm (" nanosleep.u32 64;" ::: " memory" );
158158#elif defined(__AMDGPU__) && defined(RPC_TARGET_IS_GPU)
159159 __builtin_amdgcn_s_sleep (2 );
160- #elif __has_builtin(__builtin_ia32_pause)
160+ #elif __has_builtin(__builtin_ia32_pause) && !defined(__SPIRV__)
161161 __builtin_ia32_pause ();
162162#elif __has_builtin(__builtin_arm_isb)
163163 __builtin_arm_isb (0xf );
Original file line number Diff line number Diff line change @@ -264,6 +264,9 @@ compileDeviceRTLLibrary(amdgpu amdgcn-amd-amdhsa -Xclang -mcode-object-version=n
264264add_custom_target (omptarget.devicertl.nvptx)
265265compileDeviceRTLLibrary(nvptx nvptx64-nvidia-cuda --cuda-feature=+ptx63)
266266
267+ add_custom_target (omptarget.devicertl.spirv64)
268+ compileDeviceRTLLibrary(spirv64 spirv64)
269+
267270# Archive all the object files generated above into a static library
268271add_library (omptarget.devicertl STATIC )
269272set_target_properties (omptarget.devicertl PROPERTIES
You can’t perform that action at this time.
0 commit comments