fsycl-host-compiler

Tells the compiler to use the specified compiler for the host compilation of the overall offloading compilation that is performed.

Syntax

Linux:

-fsycl-host-compiler=arg

Windows:

-fsycl-host-compiler=arg

Arguments

arg

Is the compiler that will be the host for compilation.

It can be the name of a compiler or the specific path to the compiler.

Default

Linux: OFF

The host compilation will be performed by the Intel® DPC++ Compiler.

Windows: /Zc:__cplusplus

The host compilation will be performed by the Microsoft* __cplusplus preprocessor macro, which depends on the setting of option /std (or /Qstd). For more information about macro /Zc:__cplusplus, see the Microsoft documentation.

To override this default, specify option /fsycl-host-compiler-options=/Zc:cplusplus-.

Description

This option tells the compiler to use the specified compiler for the host compilation of the overall offloading compilation that is performed.

Note

When using this option, you must also specify option -fsycl.

For information about available SYCL drivers, refer to Invoke the Compiler.

IDE Equivalent

None

Alternate Options

None

Example

Consider the following:

-fsycl-host-compiler=g++              // the compiler looks for g++ in the PATH
-fsycl-host-compiler=/usr/bin/g++     // the compiler looks for g++ in the explicit path

See Also