File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11// Verify the __CUDA_ARCH__ macro has not been defined when offloading SYCL on NVPTX
22// RUN: %clangxx -E -dM -fsycl -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --offload-arch=sm_80 -nocudalib -fno-sycl-libspirv %s 2>&1 \
3- // RUN: | FileCheck --check-prefix=CHECK-CUDA-ARCH-MACRO %s
3+ // RUN: | FileCheck --check-prefix=CHECK-CUDA-ARCH-MACRO-NVPTX %s
4+ // CHECK-CUDA-ARCH-MACRO-NVPTX-NOT: #define __CUDA_ARCH__ {{[0-9]+}}
5+
46// Verify the __CUDA_ARCH__ macro has not been defined when offloading SYCL on AMDGPU
57// RUN: %clangxx -E -dM -fsycl -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx90a -nogpulib -fno-sycl-libspirv %s 2>&1 \
6- // RUN: | FileCheck --check-prefix=CHECK-CUDA-ARCH-MACRO %s
7- // CHECK-CUDA-ARCH-MACRO-NOT: #define __CUDA_ARCH__ {{[0-9]+}}
8+ // RUN: | FileCheck --check-prefix=CHECK-CUDA-ARCH-MACRO-AMDGPU %s
9+ // CHECK-CUDA-ARCH-MACRO-AMDGPU- NOT: #define __CUDA_ARCH__ {{[0-9]+}}
810
911// Verify that '-fcuda-is-device' is not supplied when offloading SYCL on NVPTX
1012// RUN: %clangxx -### -fsycl -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --offload-arch=sm_80 -nocudalib -fno-sycl-libspirv %s 2>&1 \
You can’t perform that action at this time.
0 commit comments