swh:1:snp:3cba5856b0ddc3feab6c3c2d096d614b02c883ec
Raw File
Tip revision: 6ab08c4e99469439900c1cdc02fd2452ab268a87 authored by Brad King on 10 July 2020, 10:49:28 UTC
CMake 3.18.0-rc4
Tip revision: 6ab08c4
file2.cu

#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;
}
back to top