diff options
Diffstat (limited to 'Tests/Cuda/ProperLinkFlags/file1.cu')
-rw-r--r-- | Tests/Cuda/ProperLinkFlags/file1.cu | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/Cuda/ProperLinkFlags/file1.cu b/Tests/Cuda/ProperLinkFlags/file1.cu new file mode 100644 index 0000000..d93dc9f --- /dev/null +++ b/Tests/Cuda/ProperLinkFlags/file1.cu @@ -0,0 +1,11 @@ + +#include "file1.h" + +result_type __device__ file1_func(int x) +{ + __ldg(&x); + result_type r; + r.input = x; + r.sum = x*x; + return r; +} |