summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/CompileFlags/main.cu
blob: 573d230ccd2d6cb5eaf22ac6398e02d725bb0537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifdef __CUDA_ARCH__
#  if __CUDA_ARCH__ != 500
#    error "Passed architecture 50, but got something else."
#  endif
#endif

// Check HOST_DEFINE only for nvcc
#ifndef __CUDA__
#  ifndef HOST_DEFINE
#    error "HOST_DEFINE not defined!"
#  endif
#endif

int main()
{
}