Skip to content

Commit

Permalink
[CUDA] Change '__activemask' to use '__nvvm_activemask()' (#79892)
Browse files Browse the repository at this point in the history
Summary:
We recently added builitin support for this function.
  • Loading branch information
jhuber6 committed Jan 29, 2024
1 parent 0a2b5b0 commit 51379a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clang/lib/Headers/__clang_cuda_intrinsics.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,7 @@ inline __device__ unsigned int __activemask() {
#if CUDA_VERSION < 9020
return __nvvm_vote_ballot(1);
#else
unsigned int mask;
asm volatile("activemask.b32 %0;" : "=r"(mask));
return mask;
return __nvvm_activemask();
#endif
}

Expand Down

0 comments on commit 51379a9

Please sign in to comment.