]> granicus.if.org Git - clang/commitdiff
[CUDA] Added missing __threadfence_system() function for CUDA9.
authorArtem Belevich <tra@google.com>
Tue, 20 Feb 2018 21:25:30 +0000 (21:25 +0000)
committerArtem Belevich <tra@google.com>
Tue, 20 Feb 2018 21:25:30 +0000 (21:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325626 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/__clang_cuda_device_functions.h

index 786700b5e95ec65c0dfb5c6321153267450474bd..99be64bbbf1d4949a2ab9eeec2f942c67526ef2d 100644 (file)
@@ -530,6 +530,7 @@ __DEVICE__ int __syncthreads_or(int __a) { return __nvvm_bar0_or(__a); }
 __DEVICE__ float __tanf(float __a) { return __nv_fast_tanf(__a); }
 __DEVICE__ void __threadfence(void) { __nvvm_membar_gl(); }
 __DEVICE__ void __threadfence_block(void) { __nvvm_membar_cta(); };
+__DEVICE__ void __threadfence_system(void) { __nvvm_membar_sys(); };
 __DEVICE__ void __trap(void) { asm volatile("trap;"); }
 __DEVICE__ unsigned int __uAtomicAdd(unsigned int *__p, unsigned int __v) {
   return __nvvm_atom_add_gen_i((int *)__p, __v);