This is an archive of the discontinued LLVM Phabricator instance.

[libc] Simplify enabling the GPU build for libc
ClosedPublic

Authored by jhuber6 on Mar 27 2023, 9:07 AM.

Details

Summary

Currently the GPU build requires the LLVM_LIBC_FULL_BUILD option to be
set. This patch changes the logic so that it is always enabled when
targeting the GPU. Also, this patch allows LIBC_GPU_BUILD and
LIBC_GPU_ARCHITECTURES to both enable a GPU build. Now, enabling the
GPU support should only require the following CMake:

-DLLVM_ENABLE_RUNTIMES=libc -DLIBC_GPU_ARCHITECTURES=gfx1030

Diff Detail

Event Timeline

jhuber6 created this revision.Mar 27 2023, 9:07 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 27 2023, 9:07 AM
jhuber6 requested review of this revision.Mar 27 2023, 9:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 27 2023, 9:07 AM
This revision is now accepted and ready to land.Mar 27 2023, 10:12 AM
sivachandra accepted this revision.Mar 27 2023, 11:06 AM
This revision was automatically updated to reflect the committed changes.