Trait lamellar::lamellar_env::LamellarEnv
source · 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§
sourcefn my_pe(&self) -> usize
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)
sourcefn num_threads_per_pe(&self) -> usize
fn num_threads_per_pe(&self) -> usize
Return the number of threads per PE
sourcefn world(&self) -> Arc<LamellarTeam>
fn world(&self) -> Arc<LamellarTeam>
Return a pointer the world team
sourcefn team(&self) -> Arc<LamellarTeam>
fn team(&self) -> Arc<LamellarTeam>
Return a pointer to the LamellarTeam