Visible to Intel only — GUID: GUID-3229E77C-85BB-49A8-A4FA-0B96EFA335D3
Visible to Intel only — GUID: GUID-3229E77C-85BB-49A8-A4FA-0B96EFA335D3
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.
Linux: |
-fsycl-link-huge-device-code -fno-sycl-link-huge-device-code |
Windows: |
None |
None
fno-sycl-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.
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
Example
The following shows an example of using this option:
icpx -fsycl -fsycl-link-huge-device-code c.o b.o -o b.out