summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/CircularLinkLine/file1.cu
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2018-07-13 18:43:49 (GMT)
committerBrad King <brad.king@kitware.com>2018-07-17 14:04:39 (GMT)
commitb07c71831c2ea42023dc27eb81e3099cefe35dd2 (patch)
treee744559b8de185164b751e9f0714476f7dc72e9e /Tests/CudaOnly/CircularLinkLine/file1.cu
parentbfb025f04b3522ff0fee650e7c4c4fe808d739b3 (diff)
downloadCMake-b07c71831c2ea42023dc27eb81e3099cefe35dd2.zip
CMake-b07c71831c2ea42023dc27eb81e3099cefe35dd2.tar.gz
CMake-b07c71831c2ea42023dc27eb81e3099cefe35dd2.tar.bz2
CUDA: Add a test to verify device linking can handle circular deps
Diffstat (limited to 'Tests/CudaOnly/CircularLinkLine/file1.cu')
-rw-r--r--Tests/CudaOnly/CircularLinkLine/file1.cu6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CudaOnly/CircularLinkLine/file1.cu b/Tests/CudaOnly/CircularLinkLine/file1.cu
new file mode 100644
index 0000000..88ac4e3
--- /dev/null
+++ b/Tests/CudaOnly/CircularLinkLine/file1.cu
@@ -0,0 +1,6 @@
+
+extern __device__ int file2_func(int);
+int __device__ file1_func(int x)
+{
+ return file2_func(x);
+}