[libc-commits] [libc] 0d2722c - [libc][Docs] Add proper 'offload' build to use libc with offload

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Mon Feb 17 10:42:57 PST 2025


Author: Joseph Huber
Date: 2025-02-17T12:42:37-06:00
New Revision: 0d2722c20d75b237524dd4ec87a1d3da707ec96e

URL: https://github.com/llvm/llvm-project/commit/0d2722c20d75b237524dd4ec87a1d3da707ec96e
DIFF: https://github.com/llvm/llvm-project/commit/0d2722c20d75b237524dd4ec87a1d3da707ec96e.diff

LOG: [libc][Docs] Add proper 'offload' build to use libc with offload

Summary:
Since this was added the offloading target now requires `offload`.

Fixes: https://github.com/llvm/llvm-project/issues/127458

Added: 
    

Modified: 
    libc/docs/gpu/building.rst

Removed: 
    


################################################################################
diff  --git a/libc/docs/gpu/building.rst b/libc/docs/gpu/building.rst
index 94d3f1f644e5c..9f9528b30d9bf 100644
--- a/libc/docs/gpu/building.rst
+++ b/libc/docs/gpu/building.rst
@@ -43,7 +43,7 @@ arguments automatically.
   $> cd build
   $> cmake ../llvm -G Ninja                                                 \
      -DLLVM_ENABLE_PROJECTS="clang;lld"                                     \
-     -DLLVM_ENABLE_RUNTIMES="openmp"                                        \
+     -DLLVM_ENABLE_RUNTIMES="openmp;offload"                                \
      -DCMAKE_BUILD_TYPE=<Debug|Release>   \ # Select build type
      -DCMAKE_INSTALL_PREFIX=<PATH>        \ # Where the libraries will live
      -DRUNTIMES_nvptx64-nvidia-cuda_LLVM_ENABLE_RUNTIMES=libc               \


        


More information about the libc-commits mailing list