[libc-commits] [PATCH] D149923: [libc] Fix hanging test on NVPTX due to lack of warp sync

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu May 4 19:38:35 PDT 2023


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2e93dd06134d: [libc] Fix hanging test on NVPTX due to lack of warp sync (authored by jhuber6).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149923/new/

https://reviews.llvm.org/D149923

Files:
  libc/src/__support/GPU/nvptx/utils.h


Index: libc/src/__support/GPU/nvptx/utils.h
===================================================================
--- libc/src/__support/GPU/nvptx/utils.h
+++ libc/src/__support/GPU/nvptx/utils.h
@@ -130,11 +130,7 @@
 
 /// Waits for all threads in the warp to reconverge for independent scheduling.
 [[clang::convergent]] LIBC_INLINE void sync_lane(uint64_t mask) {
-#if __CUDA_ARCH__ >= 700
   __nvvm_bar_warp_sync(mask);
-#else
-  (void)mask;
-#endif
 }
 
 } // namespace gpu


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149923.519726.patch
Type: text/x-patch
Size: 477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230505/57588fb8/attachment.bin>


More information about the libc-commits mailing list