We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e5f277 commit b440fb7Copy full SHA for b440fb7
clang/lib/Headers/__clang_cuda_device_functions.h
@@ -528,7 +528,7 @@ __DEVICE__ float __tanf(float __a) { return __nv_fast_tanf(__a); }
528
__DEVICE__ void __threadfence(void) { __nvvm_membar_gl(); }
529
__DEVICE__ void __threadfence_block(void) { __nvvm_membar_cta(); };
530
__DEVICE__ void __threadfence_system(void) { __nvvm_membar_sys(); };
531
-__DEVICE__ void __trap(void) { __asm__ __volatile__("trap;"); }
+__DEVICE__ __attribute__((noreturn)) void __trap(void) { __builtin_trap(); }
532
__DEVICE__ unsigned short
533
__usAtomicCAS(unsigned short *__p, unsigned short __cmp, unsigned short __v) {
534
return __nvvm_atom_cas_gen_us(__p, __cmp, __v);
0 commit comments