[libc-commits] [PATCH] D150012: [libc][docs] Fix incorrect CMake argument in GPU documentation

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri May 5 18:16:32 PDT 2023


jhuber6 created this revision.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
jhuber6 requested review of this revision.

Summary;
This was changed a long time ago to drop the `LLVM_` prefix.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150012

Files:
  libc/docs/gpu/using.rst


Index: libc/docs/gpu/using.rst
===================================================================
--- libc/docs/gpu/using.rst
+++ libc/docs/gpu/using.rst
@@ -17,7 +17,7 @@
 using the ``LLVM_ENABLE_RUNTIMES=libc`` option. To enable libc for the GPU,
 enable the ``LIBC_GPU_BUILD`` option. By default, ``libcgpu.a`` will be built
 using every supported GPU architecture. To restrict the number of architectures
-build, either set ``LLVM_LIBC_GPU_ARCHITECTURES`` to the list of desired
+build, either set ``LIBC_GPU_ARCHITECTURES`` to the list of desired
 architectures manually or use ``native`` to detect the GPUs on your system. A
 typical ``cmake`` configuration will look like this:
 
@@ -31,7 +31,7 @@
      -DLLVM_ENABLE_RUNTIMES="libc;openmp"                  \
      -DCMAKE_BUILD_TYPE=<Debug|Release>   \ # Select build type
      -DLIBC_GPU_BUILD=ON                  \ # Build in GPU mode
-     -DLLVM_LIBC_GPU_ARCHITECTURES=all    \ # Build all supported architectures
+     -DLIBC_GPU_ARCHITECTURES=all         \ # Build all supported architectures
      -DCMAKE_INSTALL_PREFIX=<PATH>        \ # Where 'libcgpu.a' will live
   $> ninja install
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150012.520011.patch
Type: text/x-patch
Size: 1157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230506/0db10ae6/attachment.bin>


More information about the libc-commits mailing list