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.

Declared at: include/partition.h:41

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

Declared at: include/partition.h:47


const subrange<Dims>& get_subrange() const

Description

The subrange handled by this host.

Declared at: include/partition.h:44


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

Declared at: include/partition.h:56

Parameters

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