Visible to Intel only — GUID: GUID-0A3D21F3-4B3E-4A68-BEA5-0A7D59A2575B
Visible to Intel only — GUID: GUID-0A3D21F3-4B3E-4A68-BEA5-0A7D59A2575B
fsycl-link-targets
Tells the compiler to link only device code. This is a deprecated option that may be removed in a future release.
Linux: |
-fsycl-link-targets=T1,...,Tn |
Windows: |
-fsycl-link-targets=T1,...,Tn |
T |
Is a target triple for the device code. You can specify more than one T. |
OFF |
No link is performed. |
This option tells the compiler to link only device code. It is used in a link step.
It tells the compiler to link device code for the given target triples, and output multiple linked device code images. It does not produce fat binary.
You should be familiar with ahead-of-time (AOT) compilation when using this option.
When using this option, you must also specify option -fsycl.
For information about available SYCL drivers, refer to Invoke the Compiler.
When SYCL offloading is enabled, this option only applies to device-specific compilation.
None
Example
The following command-line sequence demonstrates a way to use this option:
icx -fsycl -fsycl-targets=spir64 -c a.cpp -o a.o icx -fsycl -fsycl-targets=spir64 -c b.cpp -o b.o icx -fsycl -fsycl-link-targets=spir64 a.o b.o -o linked.spv aoc linked.spv -o linked.aocx icx -fsycl -fsycl-add-targets=fpga:linked.aocx a.o b.o -o final.out -lOpenCL -lsycl