[llvm] [docs][CUDA] Document --offload-arch in CompileCudaWithLLVM (PR #190558)
Carlos Galvez via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 05:51:42 PDT 2026
================
@@ -81,14 +81,15 @@ run your program.
* ``<GPU arch>`` -- the `compute capability
<https://developer.nvidia.com/cuda-gpus>`_ of your GPU. For example, if you
want to run your program on a GPU with compute capability of 3.5, specify
- ``--cuda-gpu-arch=sm_35``.
+ ``--offload-arch=sm_35``.
- Note: You cannot pass ``compute_XX`` as an argument to ``--cuda-gpu-arch``;
+ Note: You cannot pass ``compute_XX`` as an argument to ``--offload-arch``;
only ``sm_XX`` is currently supported. However, clang always includes PTX in
- its binaries, so e.g. a binary compiled with ``--cuda-gpu-arch=sm_30`` would be
+ its binaries, so e.g. a binary compiled with ``--offload-arch=sm_30`` would be
----------------
carlosgalvezp wrote:
Maybe for a separate PR: This part should also be removed as per https://github.com/llvm/llvm-project/issues/189738
But @Artem-B said "disabled bundling PTX **by default**" - is there a way to enable it? I did ask the question but it might have been missed :)
https://github.com/llvm/llvm-project/pull/190558
More information about the llvm-commits
mailing list