Skip to main content

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

Member Functions

const range<Dims>& get_global_size() const

Description

The size of the entire iteration space


const subrange<Dims>& get_subrange() const

Description

The subrange handled by this host.


explicit partition(const range<Dims>& global_size,
                   const subrange<Dims>& range)

Parameters

const range<Dims>& global_size
const subrange<Dims>& range