summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-05-04 21:36:52 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2023-05-04 21:38:24 -0500
commit2e93dd06134d4e71436b0aec3f668e0302b6e7ea (patch)
tree6cedcf62764128f07199f48e09b856778116e59d /libc
parentae1ca47bb4456c97e112b10364c65102ffe31cd0 (diff)
downloadllvm-2e93dd06134d4e71436b0aec3f668e0302b6e7ea.tar.gz
[libc] Fix hanging test on NVPTX due to lack of warp sync
Previously this wasn't implemented because it's effectively a no-op. However, this should be safe to emit on sm_60 architectures. It's important because it carries semantic importance for whether or not something can be moved. So we should always emit this instrinsic. Differential Revision: https://reviews.llvm.org/D149923
Diffstat (limited to 'libc')
-rw-r--r--libc/src/__support/GPU/nvptx/utils.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/libc/src/__support/GPU/nvptx/utils.h b/libc/src/__support/GPU/nvptx/utils.h
index 9f20edf16c62..763675735a2b 100644
--- a/libc/src/__support/GPU/nvptx/utils.h
+++ b/libc/src/__support/GPU/nvptx/utils.h
@@ -130,11 +130,7 @@ LIBC_INLINE uint32_t get_lane_size() { return LANE_SIZE; }
/// 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