summaryrefslogtreecommitdiffstats
path: root/Tests/Module/CheckIPOSupported-CUDA/bar.cu
blob: 79b276db2a35622604c0604a0ce0f3b35de82e80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
__device__ int foo_func(int);

void __global__ bar_kernel(int x)
{
  foo_func(x);
}

int launch_kernel(int x)
{
  bar_kernel<<<1, 1>>>(x);
  return x;
}