File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ The simplest way to build the GPU libc is to use the existing LLVM runtimes
33
33
support. This will automatically handle bootstrapping an up-to-date ``clang ``
34
34
compiler and using it to build the C library. The following CMake invocation
35
35
will instruct it to build the ``libc `` runtime targeting both AMD and NVIDIA
36
- GPUs.
36
+ GPUs. The ``LIBC_GPU_BUILD `` option can also be enabled to add the relevant
37
+ arguments automatically.
37
38
38
39
.. code-block :: sh
39
40
@@ -234,6 +235,10 @@ standard runtime build.
234
235
This flag controls whether or not the libc build will generate its own
235
236
headers. This must always be on when targeting the GPU.
236
237
238
+ **LIBC_GPU_BUILD **:BOOL
239
+ Shorthand for enabling GPU support. Equivalent to enabling support for both
240
+ AMDGPU and NVPTX builds for ``libc ``.
241
+
237
242
**LIBC_GPU_TEST_ARCHITECTURE **:STRING
238
243
Sets the architecture used to build the GPU tests for, such as ``gfx90a `` or
239
244
``sm_80 `` for AMD and NVIDIA GPUs respectively. The default behavior is to
You can’t perform that action at this time.
0 commit comments