fsycl-id-queries-fit-in-int

Tells the compiler to assume that SYCL ID queries fit within MAX_INT. This content is specific to DPC++.

Syntax

Linux:

-fsycl-id-queries-fit-in-int

-fno-sycl-id-queries-fit-in-int

Windows:

-fsycl-id-queries-fit-in-int

-fno-sycl-id-queries-fit-in-int

Arguments

None

Default

ON

The compiler assumes that SYCL ID queries fit within MAX_INT.

Description

This option tells the compiler to assume that SYCL ID queries fit within MAX_INT. It assumes that the following values fit within MAX_INT:

For more information about these values, see the Khronos* Group SYCL* 1.2.1 Specification.

If you need to use a larger number of work items, use the OFF setting for this option, which is -fno-sycl-id-queries-fit-in-int.

CAUTION

You should carefully evaluate whether you should use the OFF setting when you have a larger number of work items. Truncating to data type int is often incorrect in such circumstances. If the OFF setting is used when the values fit within MAX_INT, it can lead to unexpected performance issues.

IDE Equivalent

None

Alternate Options

None