[all-commits] [llvm/llvm-project] def590: [libc] Do not find system binaries for offloading ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Aug 17 12:16:41 PDT 2023

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

  Changed paths:
    M libc/cmake/modules/prepare_libc_gpu_build.cmake

  Log Message:
  [libc] Do not find system binaries for offloading tools

    We use `find_program` to identify a few programs we use for offloading.
    Namely, `clang-offload-packger`, `amdgpu-arch`, and `nvptx-arch`.
    Currently the logic allows these to bind to any tool matching this name,
    so it will find it on the system. This meant that if the installation
    was deleted or it found a broken binary the compilation would fail. We
    should only pull these from the current LLVM binary directory.

Reviewed By: arsenm

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

More information about the All-commits mailing list