[libc-commits] [PATCH] D158203: [libc] Do not find system binaries for offloading tools
Joseph Huber via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Aug 17 12:16:44 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGdef5905c4592: [libc] Do not find system binaries for offloading tools (authored by jhuber6).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158203/new/
https://reviews.llvm.org/D158203
Files:
libc/cmake/modules/prepare_libc_gpu_build.cmake
Index: libc/cmake/modules/prepare_libc_gpu_build.cmake
===================================================================
--- libc/cmake/modules/prepare_libc_gpu_build.cmake
+++ libc/cmake/modules/prepare_libc_gpu_build.cmake
@@ -30,12 +30,12 @@
# Identify any locally installed AMD GPUs on the system using 'amdgpu-arch'.
find_program(LIBC_AMDGPU_ARCH
- NAMES amdgpu-arch
+ NAMES amdgpu-arch NO_DEFAULT_PATH
PATHS ${LLVM_BINARY_DIR}/bin /opt/rocm/llvm/bin/)
# Identify any locally installed NVIDIA GPUs on the system using 'nvptx-arch'.
find_program(LIBC_NVPTX_ARCH
- NAMES nvptx-arch
+ NAMES nvptx-arch NO_DEFAULT_PATH
PATHS ${LLVM_BINARY_DIR}/bin)
# Get the list of all natively supported GPU architectures.
@@ -64,7 +64,7 @@
# Identify the program used to package multiple images into a single binary.
find_program(LIBC_CLANG_OFFLOAD_PACKAGER
- NAMES clang-offload-packager
+ NAMES clang-offload-packager NO_DEFAULT_PATH
PATHS ${LLVM_BINARY_DIR}/bin)
if(NOT LIBC_CLANG_OFFLOAD_PACKAGER)
message(FATAL_ERROR "Cannot find the 'clang-offload-packager' for the GPU "
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158203.551221.patch
Type: text/x-patch
Size: 1201 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230817/91b0ccc3/attachment.bin>
More information about the libc-commits
mailing list