Defines the iteration domain of either a single work-group in a parallel dispatch, or the overall Dimensions of the dispatch. More...
#include <sycl/range.hpp>
Public Member Functions | |
template<int N = Dimensions> | |
range (typename std::enable_if_t<(N==1), size_t > dim0) | |
template<int N = Dimensions> | |
range (typename std::enable_if_t<(N==2), size_t > dim0, size_t dim1) | |
template<int N = Dimensions> | |
range (typename std::enable_if_t<(N==3), size_t > dim0, size_t dim1, size_t dim2) | |
size_t | size () const |
range (const range< Dimensions > &rhs)=default | |
range (range< Dimensions > &&rhs)=default | |
range< Dimensions > & | operator= (const range< Dimensions > &rhs)=default |
range< Dimensions > & | operator= (range< Dimensions > &&rhs)=default |
range ()=default | |
Public Member Functions inherited from sycl::_V1::detail::array< 1 > | |
array (typename std::enable_if_t<(N==1), size_t > dim0=0) | |
array (typename std::enable_if_t<(N==2), size_t > dim0, size_t dim1) | |
array () | |
array (typename std::enable_if_t<(N==3), size_t > dim0, size_t dim1, size_t dim2) | |
array () | |
array (const array< dimensions > &rhs)=default | |
array (array< dimensions > &&rhs)=default | |
operator sycl::id< dimensions > () const | |
operator sycl::range< dimensions > () const | |
size_t | get (int dimension) const |
size_t & | operator[] (int dimension) |
size_t | operator[] (int dimension) const |
array< dimensions > & | operator= (const array< dimensions > &rhs)=default |
array< dimensions > & | operator= (array< dimensions > &&rhs)=default |
bool | operator== (const array< dimensions > &rhs) const |
bool | operator!= (const array< dimensions > &rhs) const |
Static Public Attributes | |
static constexpr int | dimensions = Dimensions |
Friends | |
class | handler |
class | detail::Builder |
Additional Inherited Members | |
Protected Member Functions inherited from sycl::_V1::detail::array< 1 > | |
__SYCL_ALWAYS_INLINE void | check_dimension (int dimension) const |
Protected Attributes inherited from sycl::_V1::detail::array< 1 > | |
size_t | common_array [dimensions] |
Defines the iteration domain of either a single work-group in a parallel dispatch, or the overall Dimensions of the dispatch.
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
default |
|
default |
|
default |
|
inline |
Definition at line 56 of file range.hpp.
References sycl::_V1::Dimensions, and sycl::_V1::detail::array< 1 >::get().
Referenced by syclcompat::compute_nd_range(), syclcompat::device_memory< T, Memory, Dimension >::device_memory(), sycl::_V1::detail::doOverlap(), sycl::_V1::detail::doTreeReduction(), sycl::_V1::detail::MemoryManager::fill(), sycl::_V1::ext::oneapi::experimental::root_group< Dimensions >::get_group_linear_range(), sycl::_V1::ext::oneapi::experimental::root_group< Dimensions >::get_local_linear_range(), sycl::_V1::ext::oneapi::experimental::radix_sorter< ValT, OrderT, BitsPerPass >::memory_required(), sycl::_V1::detail::reduAuxCGFunc(), sycl::_V1::detail::reduCGFuncImplArrayHelper(), sycl::_V1::detail::reduCGFuncImplScalar(), sycl::_V1::detail::reduCGFuncMulti(), sycl::_V1::detail::reduction_parallel_for(), sycl::_V1::buffer< T, dimensions, AllocatorT, __Enabled >::reinterpret(), sycl::_V1::detail::NDRangeReduction< reduction::strategy::group_reduce_and_last_wg_detection >::run(), sycl::_V1::detail::NDRangeReduction< reduction::strategy::range_basic >::run(), sycl::_V1::detail::NDRangeReduction< reduction::strategy::group_reduce_and_multiple_kernels >::run(), sycl::_V1::detail::NDRangeReduction< reduction::strategy::basic >::run(), and sycl::_V1::detail::NDRangeReduction< reduction::strategy::multi >::run().
|
friend |
|
staticconstexpr |