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
Examples
The following shows examples of using this option:
icx -fsycl -flink-huge-device-code a.cpp b.cpp -o a.out
icpx -fiopenmp -fopenmp-targets=spir64 -flink-huge-device-code c.o b.o -o b.out