[libc-commits] [PATCH] D146994: [libc] Support setting 'native' GPU architecture for libc

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Mar 27 12:01:01 PDT 2023


jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, sivachandra, lntue, michaelrj.
Herald added subscribers: libc-commits, kosarev, ecnelises, tschuett, tpr.
Herald added projects: libc-project, All.
jhuber6 requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146994

Files:
  libc/cmake/modules/prepare_libc_gpu_build.cmake

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146994.508748.patch
Type: text/x-patch
Size: 6734 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230327/9bf3344a/attachment.bin>


More information about the libc-commits mailing list