[PATCH] D38468: [CUDA] Fix name of __activemask()
Jonas Hahnfeld via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 2 10:32:52 PDT 2017
Hahnfeld created this revision.
The name has two underscores in the official CUDA documentation:
http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#warp-vote-functions
https://reviews.llvm.org/D38468
Files:
lib/Headers/__clang_cuda_intrinsics.h
Index: lib/Headers/__clang_cuda_intrinsics.h
===================================================================
--- lib/Headers/__clang_cuda_intrinsics.h
+++ lib/Headers/__clang_cuda_intrinsics.h
@@ -186,7 +186,7 @@
return __nvvm_vote_ballot_sync(mask, pred);
}
-inline __device__ unsigned int activemask() { return __nvvm_vote_ballot(1); }
+inline __device__ unsigned int __activemask() { return __nvvm_vote_ballot(1); }
#endif // !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 300
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38468.117384.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171002/ff5ad8e4/attachment.bin>
More information about the cfe-commits
mailing list