class partition
Declaration
template <int Dims>
class partition { /* full declaration omitted */ };
Description
Represents the sub-range of the iteration space handled by each host in a host_task.
Template Parameters
- int Dims
Member Variables
- range<Dims> m_global_size
- subrange<Dims> m_range
Member Function Overview
- get_global_size() const → const range<Dims> &
- get_subrange() const → const subrange<Dims> &
- partition(const range<Dims> & global_size, const subrange<Dims> & range) → explicit
Member Functions
¶const range<Dims>& get_global_size() const
const range<Dims>& get_global_size() const
Description
The size of the entire iteration space
¶const subrange<Dims>& get_subrange() const
const subrange<Dims>& get_subrange() const
Description
The subrange handled by this host.
¶explicit partition(const range<Dims>& global_size,
const subrange<Dims>& range)
explicit partition(const range<Dims>& global_size,
const subrange<Dims>& range)
Parameters
- const range<Dims>& global_size
- const subrange<Dims>& range