Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 11/07/2023
Public

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

Document Table of Contents

fsycl-id-queries-fit-in-int

Tells the compiler to assume that SYCL ID queries fit within MAX_INT.

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:

  • id class get() member function and operator[]

  • item class get_id() member function and operator[]

  • nd_item class get_global_id()/get_global_linear_id() member functions

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.

NOTE:

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

For information about available SYCL drivers, refer to Invoke the Compiler.

NOTE:

When SYCL offloading is enabled, this option only applies to device-specific compilation.

IDE Equivalent

None

Alternate Options

None