Tells the compiler to generate code for specified device targets.
Linux: | -fsycl-targets=T1,...,Tn |
Windows: | -fsycl-targets=T1,...,Tn |
T |
Is a target triple device name. If you specify more than one T, they must be separated by commas. The following triplets are supported:
|
spir64 |
The compiler will use default heuristics for SPIR64-based devices. |
This option tells the compiler to generate code for specified device targets.
Normally, option -fsycl-targets is specified when linking an application, in which case the Ahead of Time (AOT) compiled device binaries are embedded within the application's fat executable.
However, this option can also be used in combination with option -c (Linux) or /c (Windows) and option -fno-sycl-rdc when compiling a source file. In this case, the AOT compiled device binaries are embedded within the fat object file.
The long syntax values that include -sycldevice, such as spir64-unknown-unknown-sycldevice, are still supported, but they are deprecated.
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.
Visual Studio: C/C++ > General > Specify SYCL offloading targets for AOT compilation
DPC++ > General > Specify SYCL offloading targets for AOT compilation
Eclipse: Intel® C++ Compiler > General > DPC++ > Specify SYCL offloading targets for AOT compilation
Intel® oneAPI DPC++ Compiler > General > DPC++ > Specify SYCL offloading targets for AOT compilation
None