File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 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"{{.*}}
Original file line number Diff line number Diff line change 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"{{.*}}
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments