16 inline namespace _V1 {
31 "nd_range can only be 1, 2, or 3 Dimensional.");
37 : globalSize(globalSize), localSize(localSize), offset(offset) {}
40 : globalSize(globalSize), localSize(localSize), offset(
id<
Dimensions>()) {
61 return (rhs.globalSize == this->globalSize) &&
62 (rhs.localSize == this->localSize) && (rhs.offset == this->offset);
66 return !(*
this == rhs);
A unique identifier of an item in an index space.
Defines the iteration domain of both the work-groups and the overall dispatch.
nd_range< Dimensions > & operator=(nd_range< Dimensions > &&rhs)=default
bool operator==(const nd_range< Dimensions > &rhs) const
range< Dimensions > get_global_range() const
range< Dimensions > get_local_range() const
nd_range(const nd_range< Dimensions > &rhs)=default
id< Dimensions > get_offset() const
nd_range(range< Dimensions > globalSize, range< Dimensions > localSize)
nd_range(nd_range< Dimensions > &&rhs)=default
static constexpr int dimensions
nd_range< Dimensions > & operator=(const nd_range< Dimensions > &rhs)=default
range< Dimensions > get_group_range() const
bool operator!=(const nd_range< Dimensions > &rhs) const
class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(local_accessor) local_accessor class __SYCL_EBO __SYCL_SPECIAL_CLASS Dimensions
signed char __SYCL2020_DEPRECATED