mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
Fixes #17559 Replace our hard-coded default of cudart=static with a first-class abstraction to select the runtime library from an enumeration of logical names.
19 lines
243 B
Plaintext
19 lines
243 B
Plaintext
|
|
#ifdef _WIN32
|
|
# define EXPORT __declspec(dllexport)
|
|
#else
|
|
# define EXPORT
|
|
#endif
|
|
|
|
void __global__ file2_kernel(int x, int& r)
|
|
{
|
|
r = -x;
|
|
}
|
|
|
|
EXPORT int file2_launch_kernel(int x)
|
|
{
|
|
int r = 0;
|
|
file2_kernel<<<1, 1>>>(x, r);
|
|
return r;
|
|
}
|