[all-commits] [llvm/llvm-project] 66da9e: [Clang] Remove direct linking of offloading runtim...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed May 17 15:48:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66da9ec073ff8dde54b70adcf3b62914769324bf
      https://github.com/llvm/llvm-project/commit/66da9ec073ff8dde54b70adcf3b62914769324bf
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-05-17 (Wed, 17 May 2023)

  Changed paths:
    M clang/tools/amdgpu-arch/AMDGPUArch.cpp
    M clang/tools/amdgpu-arch/CMakeLists.txt
    M clang/tools/nvptx-arch/CMakeLists.txt
    M clang/tools/nvptx-arch/NVPTXArch.cpp

  Log Message:
  -----------
  [Clang] Remove direct linking of offloading runtimes from the arch tools

The tools `amdgpu-arch` and `nvptx-arch` are used to query the supported
GPUs on a system to implement features like `--offload-arch=native` as
well as generally being useful for setting up tests. However, we
currently directly link these if they are availible. This patch removes
this because it causes many problems on the user not having the libaries
present or misconfigured at build time. Since these are built
unconditionally we shoudl keep the dependencies away from clang.

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

Reviewed By: ye-luo

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




More information about the All-commits mailing list