Visible to Intel only — GUID: GUID-BD5621FD-E718-4A7A-8DD9-5BAA490054E0
Visible to Intel only — GUID: GUID-BD5621FD-E718-4A7A-8DD9-5BAA490054E0
flink-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.
Syntax
Linux: |
-flink-huge-device-code -fno-link-huge-device-code |
Windows: |
None |
Arguments
None
Default
fno-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.
When using this option, you must also specify option -fsycl or option -fopenmp-targets.
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
Alternate Options
None
Example
The following shows an example of using this option:
ifx -fsycl -flink-huge-device-code c.o b.o -o b.out