Imported Upstream version 3.25.0
[platform/upstream/cmake.git] / Tests / CudaOnly / DeviceLTO / file1.cu
1 #ifdef _WIN32
2 #  define EXPORT __declspec(dllexport)
3 #else
4 #  define EXPORT
5 #endif
6
7 extern __device__ int file2_func(int);
8 void __global__ kernel(int x)
9 {
10   file2_func(x);
11 }
12
13 EXPORT int launch_kernel(int x)
14 {
15   kernel<<<1, 1>>>(x);
16   return x;
17 }