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.
Linux: | -flink-huge-device-code -fno-link-huge-device-code |
Windows: | None |
None
fno-link-huge-device-code |
No change is made to the linked binary. |
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.
None
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