summaryrefslogtreecommitdiffstats
path: root/test/Index/index-file.cu
blob: 26b93f0694574a2ffcb4530a10c06f45968ba8d3 (plain)
1
2
3
4
5
6
7
8
9
// Make sure we can process CUDA file even if driver creates multiple jobs
// RUN: c-index-test -test-load-source all %s | FileCheck %s -check-prefix=CHECK-ANY
// Make sure we process correct side of cuda compilation
// RUN: c-index-test -test-load-source all --cuda-host-only %s | FileCheck %s -check-prefix=CHECK-HOST
// RUN: c-index-test -test-load-source all --cuda-device-only %s | FileCheck %s -check-prefix=CHECK-DEVICE

// CHECK-ANY: macro definition=__cplusplus
// CHECK-HOST-NOT: macro definition=__CUDA_ARCH__
// CHECK-DEVICE: macro definition=__CUDA_ARCH__