You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
246 B
18 lines
246 B
2 years ago
|
#ifdef _WIN32
|
||
|
# define EXPORT __declspec(dllexport)
|
||
|
#else
|
||
|
# define EXPORT
|
||
|
#endif
|
||
|
|
||
|
extern __device__ int file2_func(int);
|
||
|
void __global__ kernel(int x)
|
||
|
{
|
||
|
file2_func(x);
|
||
|
}
|
||
|
|
||
|
EXPORT int launch_kernel(int x)
|
||
|
{
|
||
|
kernel<<<1, 1>>>(x);
|
||
|
return x;
|
||
|
}
|