[all-commits] [llvm/llvm-project] 728297: [Libomptarget] Explicitly pass the OpenMP device l...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Oct 4 12:14:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7282975057f57152dde262b1f671c876480a38d6
      https://github.com/llvm/llvm-project/commit/7282975057f57152dde262b1f671c876480a38d6
  Author: Joseph Huber <35342157+jhuber6 at users.noreply.github.com>
  Date:   2023-10-04 (Wed, 04 Oct 2023)

  Changed paths:
    M openmp/libomptarget/CMakeLists.txt
    M openmp/libomptarget/test/lit.cfg
    M openmp/libomptarget/test/lit.site.cfg.in

  Log Message:
  -----------
  [Libomptarget] Explicitly pass the OpenMP device libraries to tests (#68225)

Summary:
We have tests that depend on two static libraries
`libomptarget.devicertl.a` and `libcgpu.a`. These are currently
implicitly picked up and searched through the standard path. This patch
changes that to pass `-nogpulib` to disable implicit runtime path
searches. We then explicitly passed the built libraries to the
compilations so that we know exactly which libraries are being used.

Depends on: https://github.com/llvm/llvm-project/pull/68220

Fixes https://github.com/llvm/llvm-project/issues/68141




More information about the All-commits mailing list