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]
OPTIONS:
--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 Add to the library search path
-l Search for library
--module-split-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= Options passed to ocloc for Intel GPU AOT compilation
--opencl-aot-options=
Options passed to opencl-aot for Intel CPU AOT compilation
-o 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=
Path to the folder where the tool dumps SPIR-V device code. Other formats aren't dumped.
--triple= The device target triple
-u 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