diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/cuda/cuda-compile.cu | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cuda/cuda-compile.cu b/tests/cuda/cuda-compile.cu new file mode 100644 index 000000000..35387cd20 --- /dev/null +++ b/tests/cuda/cuda-compile.cu @@ -0,0 +1,7 @@ +//TEST(smoke):COMPILE: -pass-through nvrtc -target ptx -entry hello tests/cuda/cuda-compile.cu + +__global__ +void hello(char *a, int *b) +{ + a[threadIdx.x] += b[threadIdx.x]; +} |
