implicit-intrinsic.cu 351 B

1234567891011
  1. // RUN: %clang_cc1 -triple nvptx64-unknown-unknown -fcuda-is-device \
  2. // RUN: -fsyntax-only -verify %s
  3. #include "Inputs/cuda.h"
  4. // expected-no-diagnostics
  5. __device__ void __threadfence_system() {
  6. // This shouldn't produce an error, since __nvvm_membar_sys should be
  7. // __device__ and thus callable from device code.
  8. __nvvm_membar_sys();
  9. }