Skip to content

Commit 0c96648

Browse files
committed
fix lit failure
Signed-off-by: jinge90 <[email protected]>
1 parent ed8c67b commit 0c96648

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

clang/test/Driver/sycl-device-lib-amdgcn.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929

3030
// Check that llvm-link uses the "-only-needed" flag.
3131
// Not using the flag breaks kernel bundles.
32-
// RUN: %clangxx -### -nogpulib -fno-sycl-libspirv --sysroot=%S/Inputs/SYCL \
33-
// RUN: -fsycl -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx906 %s 2>&1 \
32+
// RUN: %clangxx -### -fsycl -fsycl-targets=amdgcn-amd-amdhsa -fno-sycl-libspirv --sysroot=%S/Inputs/SYCL \
33+
// RUN: -Xsycl-target-backend --offload-arch=gfx908 --rocm-path=%S/Inputs/rocm %s 2>&1 \
3434
// RUN: | FileCheck -check-prefix=CHK-ONLY-NEEDED %s
3535

3636
// CHK-ONLY-NEEDED: llvm-link"{{.*}}"-only-needed"{{.*}}"{{.*}}devicelib-amdgcn-amd-amdhsa.bc"{{.*}}

clang/test/Driver/sycl-device-lib-nvptx.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
// Check that llvm-link uses the "-only-needed" flag.
3131
// Not using the flag breaks kernel bundles.
32-
// RUN: %clangxx -### -nocudalib -fno-sycl-libspirv --sysroot=%S/Inputs/SYCL -fsycl -fsycl-targets=nvptx64-nvidia-cuda %s 2>&1 \
33-
// RUN: | FileCheck -check-prefix=CHK-ONLY-NEEDED %s
32+
// RUN: %clangxx -### --cuda-path=%S/Inputs/CUDA/usr/local/cuda -fno-sycl-libspirv --sysroot=%S/Inputs/SYCL \
33+
// RUN: -fsycl -fsycl-targets=nvptx64-nvidia-cuda %s 2>&1 | FileCheck -check-prefix=CHK-ONLY-NEEDED %s
3434

3535
// CHK-ONLY-NEEDED: llvm-link"{{.*}}"-only-needed"{{.*}}"{{.*}}devicelib-nvptx64-nvidia-cuda.bc"{{.*}}

clang/test/Driver/sycl-nvptx-link.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
// CHECK: llvm-link
4141
// CHECK-SAME: -only-needed
42-
// CHECK-SAME: devicelib-nvptx64-nvidia-cuda.bc
4342
// CHECK-SAME: libspirv-nvptx64-nvidia-cuda.bc
4443
// LIBDEVICE10-SAME: libdevice.10.bc
4544
// LIBDEVICE30-SAME: libdevice.compute_30.10.bc

0 commit comments

Comments
 (0)