]> granicus.if.org Git - clang/commitdiff
[CUDA] Fix name of __activemask()
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 2 Oct 2017 17:50:11 +0000 (17:50 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 2 Oct 2017 17:50:11 +0000 (17:50 +0000)
The name has two underscores in the official CUDA documentation:
http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#warp-vote-functions

Differential Revision: https://reviews.llvm.org/D38468

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314691 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/__clang_cuda_intrinsics.h

index 49cf384fd9034f07bbbff6844eee7b7ee0450c6c..bc5b876577f34d453267413961398eeda662608f 100644 (file)
@@ -186,7 +186,7 @@ inline __device__ unsigned int __ballot_sync(unsigned int mask, int pred) {
   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