OS Manuals

/usr/bin/clang-nvlink-wrapper

C language family frontend for LLVM 19

From clang-19 19.1.7-r31 (os), captured 2026-11-05 by running clang-nvlink-wrapper --help (exit 0). permalink

OVERVIEW: A utility that wraps around the NVIDIA 'nvlink' linker.
This enables static linking and LTO handling for NVPTX targets.

USAGE: clang-nvlink-wrapper [options] <options to passed to nvlink>

OPTIONS:
  --arch <value>       Specify the 'sm_' name of the target architecture.
  --cuda-path=<dir>    Set the system CUDA path
  --dry-run            Print generated commands without running.
  --feature <value>    Specify the '+ptx' freature to use for LTO.
  -g                   Specify that this was a debug compile.
  -help-hidden         Display all available options
  -help                Display available options (--help-hidden for more)
  --lto-emit-asm       Emit assembly code
  --lto-emit-llvm      Emit LLVM-IR bitcode
  -L <dir>             Add <dir> to the library search path
  -l <libname>         Search for library <libname>
  -mllvm <arg>         Arguments passed to LLVM, including Clang invocations, for which the '-mllvm' prefix is preserved. Use '-mllvm --help' for a list of options.
  -o <path>            Path to file to write output
  --plugin-opt=jobs=<value>
                       Number of LTO codegen partitions
  --plugin-opt=lto-partitions=<value>
                       Number of LTO codegen partitions
  --plugin-opt=O<O0, O1, O2, or O3>
                       Optimization level for LTO
  --plugin-opt=thinlto<value>
                       Enable the thin-lto backend
  --plugin-opt=<value> Options passed to LLVM, not including the Clang invocation. Use '--plugin-opt=--help' for a list of options.
  --ptxas-path=<dir>   Set the 'ptxas' path
  --save-temps         Save intermediate results
  --version            Display the version number and exit
  -v                   Print verbose information
Options (18)
OptionDescriptionSource
--arch valueSpecify the 'sm_' name of the target architecture.help
--cuda-path dirSet the system CUDA pathhelp
--dry-runPrint generated commands without running.help
--feature valueSpecify the '+ptx' freature to use for LTO.help
-gSpecify that this was a debug compile.help
-help-hiddenDisplay all available optionshelp
-helpDisplay available options (--help-hidden for more)help
--lto-emit-asmEmit assembly codehelp
--lto-emit-llvmEmit LLVM-IR bitcodehelp
-L dirAdd <dir> to the library search pathhelp
-l libnameSearch for library <libname>help
-mllvm argArguments passed to LLVM, including Clang invocations, for which the '-mllvm' prefix is preserved.help
-o pathPath to file to write outputhelp
--plugin-opt jobs=<valueNumber of LTO codegen partitionshelp
--ptxas-path dirSet the 'ptxas' pathhelp
--save-tempsSave intermediate resultshelp
--versionDisplay the version number and exithelp
-vPrint verbose informationhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.