Skip to content

Commit c830c12

Browse files
committed
[libc] Remove leftover target dependent intrinsic
Summary: I forgot to remove these because I thought I did it already. This caused the build to fail when actually linked.
1 parent 16140ff commit c830c12

File tree

1 file changed

+0
-8
lines changed
  • libc/src/__support/GPU/nvptx

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,21 +110,13 @@ LIBC_INLINE uint32_t get_lane_size() { return 32; }
110110
uint32_t x) {
111111
uint32_t mask = static_cast<uint32_t>(lane_mask);
112112
uint32_t id = __builtin_ffs(mask) - 1;
113-
#if __CUDA_ARCH__ >= 600
114113
return __nvvm_shfl_sync_idx_i32(mask, x, id, get_lane_size() - 1);
115-
#else
116-
return __nvvm_shfl_idx_i32(x, id, get_lane_size() - 1);
117-
#endif
118114
}
119115

120116
/// Returns a bitmask of threads in the current lane for which \p x is true.
121117
[[clang::convergent]] LIBC_INLINE uint64_t ballot(uint64_t lane_mask, bool x) {
122118
uint32_t mask = static_cast<uint32_t>(lane_mask);
123-
#if __CUDA_ARCH__ >= 600
124119
return __nvvm_vote_ballot_sync(mask, x);
125-
#else
126-
return mask & __nvvm_vote_ballot(x);
127-
#endif
128120
}
129121
/// Waits for all the threads in the block to converge and issues a fence.
130122
[[clang::convergent]] LIBC_INLINE void sync_threads() { __syncthreads(); }

0 commit comments

Comments
 (0)