Struct lamellar::BlockedArch
source · pub struct BlockedArch { /* private fields */ }
Expand description
A grouping of PE’s forming a team using a “block” based distribution pattern.
PEs in the group are contiguous (with respect to their PE id, not necessarily their pyhsical location in the distributed envrionment).
§examples
use lamellar::{LamellarWorldBuilder,BlockedArch};
let world = LamellarWorldBuilder::new().build();
let num_pes = world.num_pes();
//create a team consisting of the first half of PEs in the world
let first_half_team = world.create_team_from_arch(BlockedArch::new(
0, //start pe
(num_pes as f64 / 2.0).ceil() as usize, //num_pes in team
));
Implementations§
source§impl BlockedArch
impl BlockedArch
sourcepub fn new(start_pe: usize, num_team_pes: usize) -> BlockedArch
pub fn new(start_pe: usize, num_team_pes: usize) -> BlockedArch
Construct a new Block using a starting PE and the number of PEs to include in the Block
§Examples
use lamellar::BlockedArch;
BlockedArch::new(
4, //start pe
5, //num_pes in team
);
// the team will consist of the 5 pes => 4,5,6,7,8
Trait Implementations§
source§impl Clone for BlockedArch
impl Clone for BlockedArch
source§fn clone(&self) -> BlockedArch
fn clone(&self) -> BlockedArch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BlockedArch
impl Debug for BlockedArch
source§impl Hash for BlockedArch
impl Hash for BlockedArch
source§impl LamellarArch for BlockedArch
impl LamellarArch for BlockedArch
impl Copy for BlockedArch
Auto Trait Implementations§
impl RefUnwindSafe for BlockedArch
impl Send for BlockedArch
impl Sync for BlockedArch
impl Unpin for BlockedArch
impl UnwindSafe for BlockedArch
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more