[all-commits] [llvm/llvm-project] c57a58: [libc] Support setting 'native' GPU architecture f...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Mar 28 11:50:57 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c57a58cd0cfed0cb67e71c8ba30f53f397127a98
      https://github.com/llvm/llvm-project/commit/c57a58cd0cfed0cb67e71c8ba30f53f397127a98
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-03-28 (Tue, 28 Mar 2023)

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

  Log Message:
  -----------
  [libc] Support setting 'native' GPU architecture for libc

We already use the `amdgpu-arch` and `nvptx-arch` tools to determine the
GPU architectures the user's system supports. We can provide
`LIBC_GPU_ARCHITECTURES=native` to allow users to easily build support
for only the one found on their system. This also cleans up the code
somewhat.

Reviewed By: tra

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




More information about the All-commits mailing list