diff --git a/libc/docs/gpu/using.rst b/libc/docs/gpu/using.rst --- a/libc/docs/gpu/using.rst +++ b/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= \ # 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= \ # Where 'libcgpu.a' will live $> ninja install