summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/SeparateCompilationTargetObjects/bar.cu
blob: 234586f08a29ba1a5d4bd055fa770f57a0b250e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#include <iostream>

#ifdef _WIN32
#  define EXPORT __declspec(dllexport)
#else
#  define EXPORT __attribute__((__visibility__("default")))
#endif

__global__ void b1()
{
}

EXPORT int bar()
{
  b1<<<1, 1>>>();
  return 0;
}