File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 137137// BAD_AMD_INPUT: error: SYCL target is invalid: 'amd_gpu_bad'
138138
139139// Check the SYCL triple for AMD GPUs.
140- // RUN: %clangxx -fsycl -fsycl-targets=amdgcn-amd-amdhsa -### \
140+ // RUN: %clangxx -fsycl -nogpulib - fsycl-targets=amdgcn-amd-amdhsa -### \
141141// RUN: -Xsycl-target-backend --offload-arch=gfx908 \
142142// RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/libspirv.bc %s 2>&1 | \
143143// RUN: FileCheck %s --check-prefixes=AMD-TRIPLE
144144// AMD-TRIPLE: clang{{.*}} "-triple" "amdgcn-amd-amdhsa"
145145
146146// Check if SYCL triples with 'Environment' component are rejected for AMD GPUs.
147- // RUN: not %clangxx -c -fsycl -fsycl-targets=amdgcn-amd-amdhsa-sycl -### %s 2>&1 | \
147+ // RUN: not %clangxx -c -fsycl -nogpulib - fsycl-targets=amdgcn-amd-amdhsa-sycl -### %s 2>&1 | \
148148 // RUN: FileCheck %s --check-prefix=BAD_TARGET_TRIPLE_ENV
149149// RUN: not %clang_cl -c -fsycl -fsycl-targets=amdgcn-amd-amdhsa-sycl -### %s 2>&1 | \
150150// RUN: FileCheck %s --check-prefix=BAD_TARGET_TRIPLE_ENV
151151// BAD_TARGET_TRIPLE_ENV: error: SYCL target is invalid: 'amdgcn-amd-amdhsa-sycl'
152152
153153// Check for invalid SYCL triple for AMD GPUs.
154- // RUN: not %clangxx -c -fsycl -fsycl-targets=amdgcn -### %s 2>&1 | \
154+ // RUN: not %clangxx -c -fsycl -nogpulib - fsycl-targets=amdgcn -### %s 2>&1 | \
155155// RUN: FileCheck %s --check-prefix=BAD_TARGET_TRIPLE
156156// RUN: not %clang_cl -c -fsycl -fsycl-targets=amdgcn-amd -### %s 2>&1 | \
157157// RUN: FileCheck %s --check-prefix=BAD_TARGET_TRIPLE
You can’t perform that action at this time.
0 commit comments