Skip to content

Commit 51379a9

Browse files
authored
[CUDA] Change '__activemask' to use '__nvvm_activemask()' (#79892)
Summary: We recently added builitin support for this function.
1 parent 0a2b5b0 commit 51379a9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Headers/__clang_cuda_intrinsics.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ inline __device__ unsigned int __activemask() {
215215
#if CUDA_VERSION < 9020
216216
return __nvvm_vote_ballot(1);
217217
#else
218-
unsigned int mask;
219-
asm volatile("activemask.b32 %0;" : "=r"(mask));
220-
return mask;
218+
return __nvvm_activemask();
221219
#endif
222220
}
223221

0 commit comments

Comments
 (0)