[all-commits] [llvm/llvm-project] bc0802: [Clang] Fix Offloading related tests after D156363

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Aug 2 12:35:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bc080221b3a2c73739caa2bf0521dd3984d0a934
      https://github.com/llvm/llvm-project/commit/bc080221b3a2c73739caa2bf0521dd3984d0a934
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-08-02 (Wed, 02 Aug 2023)

  Changed paths:
    R clang/test/Driver/Inputs/libomptarget/libomptarget-nvptx-sm_35.bc
    A clang/test/Driver/Inputs/libomptarget/libomptarget-nvptx-sm_52.bc
    R clang/test/Driver/Inputs/libomptarget/subdir/libomptarget-nvptx-sm_35.bc
    A clang/test/Driver/Inputs/libomptarget/subdir/libomptarget-nvptx-sm_52.bc
    M clang/test/Driver/amdgpu-hip-system-arch.c
    M clang/test/Driver/cuda-bad-arch.cu
    M clang/test/Driver/hip-autolink.hip
    M clang/test/Driver/hip-binding.hip
    M clang/test/Driver/hip-cuid-hash.hip
    M clang/test/Driver/hip-cuid.hip
    M clang/test/Driver/hip-default-gpu-arch.hip
    M clang/test/Driver/hip-device-compile.hip
    M clang/test/Driver/hip-host-cpu-features.hip
    M clang/test/Driver/hip-launch-api.hip
    M clang/test/Driver/hip-link-bc-to-bc.hip
    M clang/test/Driver/hip-link-bundle-archive.hip
    M clang/test/Driver/hip-no-device-libs.hip
    M clang/test/Driver/hip-options.hip
    M clang/test/Driver/hip-output-file-name.hip
    M clang/test/Driver/hip-printf.hip
    M clang/test/Driver/hip-save-temps.hip
    M clang/test/Driver/hip-std.hip
    M clang/test/Driver/hip-syntax-only.hip
    M clang/test/Driver/hip-toolchain-dwarf.hip
    M clang/test/Driver/hip-toolchain-features.hip
    M clang/test/Driver/hip-toolchain-mllvm.hip
    M clang/test/Driver/hip-toolchain-opt.hip
    M clang/test/Driver/lto.cu
    M clang/test/Driver/openmp-offload-gpu.c
    M clang/test/Driver/openmp-offload-infer.c

  Log Message:
  -----------
  [Clang] Fix Offloading related tests after D156363

This patch fixes failing tests after checking the return code from the
driver. This is mostly due to the ROCm libraries not being present
during most compilations. Passing `-nogpuinc` should allow us to compile
without it for tests that require it. Additionally, some old tests set
the architecture of Nvidia tests to `sm_35` which is officially
unsupported in CUDA 12+ so it prints an error. We just increase in this
case.

Reviewed By: MaskRay, yaxunl

Differential Revision: https://reviews.llvm.org/D156930




More information about the All-commits mailing list