class nd_range
Declaration
template <int Dims = 1>
class nd_range { /* full declaration omitted */ };
Template Parameters
- int Dims = 1
Member Variables
- range<Dims> m_global_range
- range<Dims> m_local_range
- id<Dims> m_offset
Member Function Overview
- get_global_range() const → const range<Dims> &
- get_group_range() const → const range<Dims> &
- get_local_range() const → const range<Dims> &
- get_offset() const → const id<Dims> &
- nd_range(const sycl::nd_range<Dims> & s_range)
- nd_range(const range<Dims> & global_range, const range<Dims> & local_range, const id<Dims> & offset = {})
- template <int D = Dims, typename = std::enable_if_t<D == 0>>
nd_range() noexcept → constexpr - operator nd_range<Dimensions>() const
Friend Function Overview
- operator!=(const nd_range<Dims> & lhs, const nd_range<Dims> & rhs) → friend bool
- operator==(const nd_range<Dims> & lhs, const nd_range<Dims> & rhs) → friend bool
Member Functions
¶const range<Dims>& get_global_range() const
const range<Dims>& get_global_range() const
¶const range<Dims>& get_group_range() const
const range<Dims>& get_group_range() const
¶const range<Dims>& get_local_range() const
const range<Dims>& get_local_range() const
¶const id<Dims>& get_offset() const
const id<Dims>& get_offset() const
¶nd_range(const sycl::nd_range<Dims>& s_range)
nd_range(const sycl::nd_range<Dims>& s_range)
Parameters
- const sycl::nd_range<Dims>& s_range
¶nd_range(const range<Dims>& global_range,
const range<Dims>& local_range,
const id<Dims>& offset = {})
nd_range(const range<Dims>& global_range,
const range<Dims>& local_range,
const id<Dims>& offset = {})
Parameters
- const range<Dims>& global_range
- const range<Dims>& local_range
- const id<Dims>& offset = {}
¶template <int D = Dims,
typename = std::enable_if_t<D == 0>>
constexpr nd_range() noexcept
template <int D = Dims,
typename = std::enable_if_t<D == 0>>
constexpr nd_range() noexcept
Template Parameters
- int D = Dims
- = std::enable_if_t<D == 0>
¶operator nd_range<Dimensions>() const
operator nd_range<Dimensions>() const
Friend Functions
¶friend bool operator!=(const nd_range<Dims>& lhs,
const nd_range<Dims>& rhs)
friend bool operator!=(const nd_range<Dims>& lhs,
const nd_range<Dims>& rhs)
Parameters
¶friend bool operator==(const nd_range<Dims>& lhs,
const nd_range<Dims>& rhs)
friend bool operator==(const nd_range<Dims>& lhs,
const nd_range<Dims>& rhs)