Xsycl-target

Enables options to be passed to the specified tool in the device compilation tool chain for the target. This content is specific to DPC++.

Syntax

Linux:

-Xsycl-target-tool=T "options"

Windows:

-Xsycl-target-tool=T "options"

Arguments

tool

Can be one of the following:

frontend

Indicates the frontend + middle end of the Standard Portable Intermediate Representation (SPIRV)-based device compiler for target triple T.

The middle end is the part of a SPIRV-based device compiler that generates SPIRV. This SPIRV is then passed by the dpcpp driver to the backend of target T.

backend

Indicates Ahead of Time (AOT) compilation for target triple T and Just in Time (JIT) compilation for target T at runtime.

linker

Indicates the device code linker for target triple T.

Some targets may have frontend and backend in one component; in that case, options are merged.

T

Is the target triple device.

options

Are the options you want to pass to tool.

Default

OFF

No options are passed to a tool.

Description

This option enables options to be passed to the specified tool in the device compilation tool chain for the target.

IDE Equivalent

Visual Studio: Linker > General > Pass <arg> to the backend of target device compiler specified by <triple> (target-backend)

DPC++ > General > Pass <arg> to the frontend of target device compiler (target-frontend)

Linker > General > Pass <arg> to the device code linker (target-linker)

Eclipse: Linker > General > Pass <arg> to the backend of target device compiler specified by <triple> (target-backend)

Intel® oneAPI DPC++ Compiler > General > Pass <arg> to the frontend of target device compiler (target-frontend)

Linker > General > Pass <arg> to the device code linker (target-linker)

Alternate Options

None.

See Also