☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
Interpreter
/
CUDA
/
sanity.cu
☽
☼
clang/test/Interpreter/CUDA/sanity.cu
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: cat %s | clang-repl --cuda | FileCheck %s
2
3
extern "C" int printf(const char*, ...);
4
5
__global__ void test_func() {}
6
7
test_func<<<1,1>>>();
8
printf("CUDA Error: %d", cudaGetLastError());
9
// CHECK: CUDA Error: 0
10
11
%quit