Intel® oneAPI DPC++/C++ Compiler

Developer Guide and Reference

ID 767253
Date 3/31/2025
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Visible to Intel only — GUID: GUID-ED34986A-27C8-4F0F-96B5-2A7BCC26B34A

Document Table of Contents

fsycl-allow-device-image-dependencies

Determines whether dependencies are allowed between device images when splitting device code.

Syntax

Linux:

-fsycl-allow-device-image-dependencies

-fno-sycl-allow-device-image-dependencies

Windows:

-fsycl-allow-device-image-dependencies

-fno-sycl-allow-device-image-dependencies

Arguments

None

Default

-fno-sycl-allow-device-image-dependencies

Dependencies are not allowed between device images when splitting device code.

Description

This option determines whether dependencies are allowed between device images when splitting device code.

Option -fsycl-allow-device-image-dependencies allows dependencies between device images.

Option -fno-sycl-allow-device-image-dependencies constructs complete self-contained device images with no dependencies.

NOTE:

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

This option only affects device-code compilation.

IDE Equivalent

None

Alternate Options

None

Examples

The following shows examples of using this option:

Linux

icpx -fsycl test.cpp -fsycl-allow-device-image-dependencies
icpx -fsycl test.cpp -fno-sycl-allow-device-image-dependencies

Windows

icx -fsycl test.cpp -fsycl-allow-device-image-dependencies
icx -fsycl test.cpp -fno-sycl-allow-device-image-dependencies