Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

fsycl-targets

Tells the compiler to generate code for specified device targets. This description is only for ifx. This option is only valid for linking against SYCL-based objects.

Syntax

Linux:

-fsycl-targets=T1,...,Tn

Windows:

-fsycl-targets=T1,...,Tn

Arguments

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

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.

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. It is only valid for linking against SYCL-based objects.

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.

NOTE:

The long syntax values that include -sycldevice, such as spir64-unknown-unknown-sycldevice, are still supported, but they are deprecated.

NOTE:

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

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

NOTE:

When SYCL offloading is enabled, this option only applies to device-specific compilation.

IDE Equivalent

None

Alternate Options

None

See Also