[libc-commits] [libc] [llvm] [OpenMP] Build OpenMP DeviceRTL on SPIR-V (PR #121600)
Nick Sarnie via libc-commits
libc-commits at lists.llvm.org
Tue Jan 7 14:08:55 PST 2025
================
@@ -157,7 +157,7 @@ RPC_ATTRS void sleep_briefly() {
asm("nanosleep.u32 64;" ::: "memory");
#elif defined(__AMDGPU__) && defined(RPC_TARGET_IS_GPU)
__builtin_amdgcn_s_sleep(2);
-#elif __has_builtin(__builtin_ia32_pause)
+#elif __has_builtin(__builtin_ia32_pause) && !defined(__SPIRV__)
----------------
sarnex wrote:
Thx, I just pushed a commit that hopefully fixes what you meant. If you feel strongly about not doing the workaround I'm happy to wait, but since IMO it's relatively simple and self-contained I was thinking we could not block the PR with that.
https://github.com/llvm/llvm-project/pull/121600
More information about the libc-commits
mailing list