Skip to content

Commit 090127d

Browse files
committed
[NFC][Driver] Avoid assert for invalide amd arch test
1 parent 9d39951 commit 090127d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Driver/sycl-oneapi-gpu-amdgpu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@
124124
// DEVICE_AMD: clang-offload-wrapper{{.*}} "-compile-opts=--offload-arch=[[DEV_STR]]{{.*}}"
125125

126126
/// test for invalid amd arch
127-
// RUN: not %clangxx -c -fsycl -fsycl-targets=amd_gpu_bad -### %s 2>&1 | \
127+
// RUN: not %clangxx -c -fsycl -nogpulib -fsycl-targets=amd_gpu_bad -### %s 2>&1 | \
128128
// RUN: FileCheck %s --check-prefix=BAD_AMD_INPUT
129-
// RUN: not %clang_cl -c -fsycl -fsycl-targets=amd_gpu_bad -### %s 2>&1 | \
129+
// RUN: not %clang_cl -c -fsycl -fsycl-targets=amd_gpu_bad --rocm-device-lib-path=/Inputs/rocm/amdgcn/bitcode -### %s 2>&1 | \
130130
// RUN: FileCheck %s --check-prefix=BAD_AMD_INPUT
131131
// BAD_AMD_INPUT: error: SYCL target is invalid: 'amd_gpu_bad'
132132

0 commit comments

Comments
 (0)