pub trait LamellarArch: Send + Sync {
    // Required methods
    fn num_pes(&self) -> usize;
    fn start_pe(&self) -> usize;
    fn end_pe(&self) -> usize;
    fn parent_pe_id(&self, team_pe: &usize) -> Result<usize, IdError>;
    fn team_pe_id(&self, parent_pe: &usize) -> Result<usize, IdError>;
}
Expand description

An abstraction which represents the PEs that are associated with a Lamellar team

Required Methods§

source

fn num_pes(&self) -> usize

The number of PEs in the team defined by this LamellarArch

source

fn start_pe(&self) -> usize

The id of the first (lowest numbered) PE in the team

source

fn end_pe(&self) -> usize

The id of the first (highest numbered) PE in the team

source

fn parent_pe_id(&self, team_pe: &usize) -> Result<usize, IdError>

Converts a (sub)team PE id into the id space of the Parent team

Returns an error if the pe does not exist in the team

source

fn team_pe_id(&self, parent_pe: &usize) -> Result<usize, IdError>

Converts a Parent team PE id into the id space of the team specified by this LamellarArch

Returns an error if the pe does not exist in the team

Implementors§