OS Manuals

/usr/bin/clang-sycl-linker

C language family frontend for LLVM 23

From clang-23 23.1.5-r0 (os), captured 2026-11-05 by running clang-sycl-linker --help (exit 0). permalink

Also provided by 3 other package versions
OVERVIEW: A utility that wraps around the SYCL device code linking process.
This enables LLVM IR linking, post-linking and code generation for SPIR-V JIT and AOT targets.

USAGE: clang-sycl-linker [options] <input bitcode files>

OPTIONS:
  --arch=<arch>           The device architecture
  --dry-run               Print generated commands without running.
  -help-hidden            Display all available options
  -help                   Display available options (--help-hidden for more)
  -L <dir>                Add <dir> to the library search path
  -l <libname>            Search for library <libname>
  --module-split-mode=<mode>
                          SYCL device code module split mode. Valid values:
                          - 'translation_unit' (default) emits one device image per translation unit that contains at least one entry point;
                          - 'kernel' emits one device image per kernel function;
                          - 'link_unit' emits one device image per linking unit.
  --no-whole-archive      Disable --whole-archive for the following inputs (default state)
  --ocloc-options=<value> Options passed to ocloc for Intel GPU AOT compilation
  --opencl-aot-options=<value>
                          Options passed to opencl-aot for Intel CPU AOT compilation
  -o <path>               Path to file to write output
  --print-linked-module   Print the linked module's IR for testing
  --save-temps            Save intermediate results
  --spirv-dump-device-code=<value>
                          Path to the folder where the tool dumps SPIR-V device code. Other formats aren't dumped.
  --triple=<triple>       The device target triple
  -u <symbol>             Force undefined symbol during linking
  --version               Display the version number and exit
  -v                      Print verbose information
  --whole-archive         Include all archive members in the link
Options (18)
OptionDescriptionSource
--arch archThe device architecturehelp
--dry-runPrint generated commands without running.help
-help-hiddenDisplay all available optionshelp
-helpDisplay available options (--help-hidden for more)help
-L dirAdd <dir> to the library search pathhelp
-l libnameSearch for library <libname>help
--module-split-mode modeSYCL device code module split mode.help
--no-whole-archiveDisable --whole-archive for the following inputs (default state)help
--opencl-aot-options valueOptions passed to opencl-aot for Intel CPU AOT compilationhelp
-o pathPath to file to write outputhelp
--print-linked-modulePrint the linked module's IR for testinghelp
--save-tempsSave intermediate resultshelp
--spirv-dump-device-code valuePath to the folder where the tool dumps SPIR-V device code.help
--triple tripleThe device target triplehelp
-u symbolForce undefined symbol during linkinghelp
--versionDisplay the version number and exithelp
-vPrint verbose informationhelp
--whole-archiveInclude all archive members in the linkhelp

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