diff options
Diffstat (limited to 'Tests/CudaOnly/CircularLinkLine/file3.cu')
-rw-r--r-- | Tests/CudaOnly/CircularLinkLine/file3.cu | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CudaOnly/CircularLinkLine/file3.cu b/Tests/CudaOnly/CircularLinkLine/file3.cu new file mode 100644 index 0000000..7f67187 --- /dev/null +++ b/Tests/CudaOnly/CircularLinkLine/file3.cu @@ -0,0 +1,8 @@ + +extern __device__ int file1_func(int); +int __device__ file3_func(int x) +{ + if (x > 0) + return file1_func(-x); + return x; +} |