File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
// Verify that '-fcuda-is-device' is not supplied when offloading SYCL on NVPTX
10
10
// RUN: %clangxx -### -fsycl -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --offload-arch=sm_80 -nocudalib -fno-sycl-libspirv %s 2>&1 \
11
- // RUN: | FileCheck --check-prefix=CHECK-CUDA-IS-DEVICE %s
11
+ // RUN: | FileCheck --check-prefix=CHECK-CUDA-IS-DEVICE-NVPTX %s
12
+ // CHECK-CUDA-IS-DEVICE: clang{{.*}} "-cc1" "-triple" "nvptx64-nvidia-cuda"
13
+ // CHECK-CUDA-IS-DEVICE-NOT: "-fcuda-is-device"
14
+ // CHECK-CUDA-IS-DEVICE-SAME: "-fsycl-is-device"
15
+
12
16
// Verify that '-fcuda-is-device' is not supplied when offloading SYCL on AMDGPU
13
17
// RUN: %clangxx -### -fsycl -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx90a -nogpulib -fno-sycl-libspirv %s 2>&1 \
14
- // RUN: | FileCheck --check-prefix=CHECK-CUDA-IS-DEVICE %s
18
+ // RUN: | FileCheck --check-prefix=CHECK-CUDA-IS-DEVICE-AMDGPU %s
15
19
// CHECK-CUDA-IS-DEVICE: clang{{.*}} "-cc1" "-triple" "amdgcn-amd-amdhsa"
16
20
// CHECK-CUDA-IS-DEVICE-NOT: "-fcuda-is-device"
17
21
// CHECK-CUDA-IS-DEVICE-SAME: "-fsycl-is-device"
You can’t perform that action at this time.
0 commit comments