fsycl-link-huge-device-code

Tells the compiler to place device code later in the linked binary. This is to prevent 32-bit PC-relative relocations between surrounding Executable and Linkable Format (ELF) sections when the device code is larger than 2GB. This is a deprecated option that will be removed in a future release. This feature is only available for ifx.

Syntax

Linux:

-fsycl-link-huge-device-code

-fno-sycl-link-huge-device-code

Windows:

None

Arguments

None

Default

fno-sycl-link-huge-device-code

No change is made to the linked binary.

Description

This option tells the compiler to place device code later in the linked binary. This is to prevent 32-bit PC-relative relocations between surrounding Executable and Linkable Format (ELF) sections when the device code is larger than 2GB.

This option impacts the host link for a full offload compilation. It does not impact device compilation directly, but it is only useful when offloading is performed.

Note

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

Note

This option only takes effect if a link action needs to be executed. For example, it will not have any effect if certain other options are specified, such as -c or -E.

IDE Equivalent

None

Alternate Options

None

Example

The following shows an example of using this option:

ifx -fsycl -fsycl-link-huge-device-code c.o b.o -o b.out

See Also