fsycl-targets
Tells the compiler to generate code for
specified device targets.
This content is specific to
DPC++
.Syntax
Linux:
-fsycl-targets
=
T1
,...,
Tn
Windows:
-fsycl-targets
=
T1
,...,
Tn
Arguments
- T
- Is a target triple device name. If you specify more than oneT, they must be separated by commas. The following triplets are supported:
- spir64
- Tells the compiler to use default heuristics for SPIR64-based devices. This is the default. You can also specify this value as spir64-unknown-unknown.
- spir64_x86_64
- Tells the compiler to generate code for Intel® CPUs. You can also specify this value as spir64_x86_64-unknown-unknown.
- x86_64
- Tells the compiler to generate code ahead of time for x86_64 CPUs; it provides better debuggability. This triplet can also be specified as x86_64-unknown-unknown.
- spir64_fpga
- Tells the compiler to generate code for Intel® FPGA. You can also specify this value as spir64_fpga-unknown-unknown.
- spir64_gen
- Tells the compiler to generate code for Intel® Processor Graphics. You can also specify this value as spir64_gen-unknown-unknown.
Default
- spir64
- The compiler will use default heuristics for SPIR64-based devices.
Description
This option tells the compiler to generate code for
specified device targets.
The long syntax values that include
-sycldevice
, such as
spir64-unknown-unknown-sycldevice
, are still supported,
but they are deprecated.
IDE Equivalent
Visual Studio:
DPC++ > General >
Specify SYCL offloading targets for AOT compilation
Eclipse:
Intel(R) oneAPI DPC++
Compiler > General > Specify SYCL offloading targets for AOT
compilation
Alternate Options
None