pub trait LamellarEnv {
    // Required methods
    fn my_pe(&self) -> usize;
    fn num_pes(&self) -> usize;
    fn num_threads_per_pe(&self) -> usize;
    fn world(&self) -> Arc<LamellarTeam>;
    fn team(&self) -> Arc<LamellarTeam>;
}
Expand description

A trait for accessing various data about the current lamellar envrionment

Required Methods§

source

fn my_pe(&self) -> usize

Return the PE id of the calling PE, if called on a team instance, the PE id will be with respect to the team (not to the world)

source

fn num_pes(&self) -> usize

Return the number of PEs in the execution

source

fn num_threads_per_pe(&self) -> usize

Return the number of threads per PE

source

fn world(&self) -> Arc<LamellarTeam>

Return a pointer the world team

source

fn team(&self) -> Arc<LamellarTeam>

Return a pointer to the LamellarTeam

Implementations on Foreign Types§

source§

impl LamellarEnv for Arc<LamellarTeam>

Implementors§