File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 77// CHECK-CUDA-ARCH-MACRO-NOT: #define __CUDA_ARCH__ {{[0-9]+}}
88
99// Verify that '-fcuda-is-device' is not supplied when offloading SYCL on NVPTX
10+ // NOTE: AMDGPU targets, i.e. "amdgcn-amd-amdhsa" may rely on "fcuda-is-device"
1011// 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 -DTRIPLE=nvptx64-nvidia-cuda %s
12- // Verify that '-fcuda-is-device' is not supplied when offloading SYCL on AMDGPU
13- // 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 -DTRIPLE=amdgcn-amd-amdhsa %s
15- // CHECK-CUDA-IS-DEVICE: clang{{.*}} "-cc1" "-triple" "[[TRIPLE]]"
12+ // RUN: | FileCheck --check-prefix=CHECK-CUDA-IS-DEVICE %s
13+ // CHECK-CUDA-IS-DEVICE: clang{{.*}} "-cc1" "-triple" "nvptx64-nvidia-cuda"
1614// CHECK-CUDA-IS-DEVICE-NOT: "-fcuda-is-device"
1715// CHECK-CUDA-IS-DEVICE-SAME: "-fsycl-is-device"
You can’t perform that action at this time.
0 commit comments