Developer Guide and Reference

ID 767253
Date 10/31/2024
Public
Document Table of Contents

fsycl-allow-device-dependencies

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

Syntax

Linux:

-fsycl-allow-device-dependencies

-fno-sycl-allow-device-dependencies

Windows:

-fsycl-allow-device-dependencies

-fno-sycl-allow-device-dependencies

Arguments

None

Default

-fno-sycl-allow-device-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-dependencies allows dependencies between device images.

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

NOTE:

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

NOTE:

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-dependencies
icpx -fsycl test.cpp -fno-sycl-allow-device-dependencies

Windows

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