Tells the compiler to assume that SYCL ID queries fit within MAX_INT. This content is specific to DPC++.
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 |
None
ON |
The compiler assumes that SYCL ID queries fit within MAX_INT. |
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.
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.
None