Skip to content

Commit ce47bfc

Browse files
author
Georgi Mirazchiyski
committed
Remove the AMDGPU test for fcuda-is-device
1 parent 5808cf3 commit ce47bfc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

clang/test/Driver/sycl-cuda-arch-macro.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
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"

0 commit comments

Comments
 (0)