summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/SeparateCompilationTargetObjects/foo.cu
blob: 88acacaffc952ba8098778c0ef1ecd6a14f18cb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifdef _WIN32
#  define EXPORT __declspec(dllexport)
#else
#  define EXPORT __attribute__((__visibility__("default")))
#endif

__global__ void k1()
{
}

EXPORT int foo()
{
  k1<<<1, 1>>>();
  return 0;
}