Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rdfriese committed Nov 16, 2024
1 parent 6dc4236 commit 5138f1a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/active_message_examples/am_no_return.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fn main() {
println!("-----------------------------------");
println!("Testing all am no return");
println!("[{:?}] exec on all", my_pe);
let res =world.exec_am_all(am.clone()).block();
let res = world.exec_am_all(am.clone()).block();
assert!(res.iter().all(|x| *x == ()));
println!("no return result: {:?}", res);
println!("---------------------------------------------------------------");
Expand Down
8 changes: 4 additions & 4 deletions src/active_messaging/registered_active_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ impl RegisteredActiveMessages {
) {
// println!("[{:?}] exec_local_am", std::thread::current().id());
world.team.world_counters.inc_outstanding(1);
team.team.team_counters.inc_outstanding(1);
team.team.team_counters.inc_outstanding(1);
match am
.exec(
req_data.team.world_pe,
Expand Down Expand Up @@ -436,7 +436,7 @@ impl RegisteredActiveMessages {
}
}
world.team.world_counters.dec_outstanding(1);
team.team.team_counters.dec_outstanding(1);
team.team.team_counters.dec_outstanding(1);
}

//#[tracing::instrument(skip_all)]
Expand Down Expand Up @@ -468,7 +468,7 @@ impl RegisteredActiveMessages {
};

world.team.world_counters.inc_outstanding(1);
team.team.team_counters.inc_outstanding(1);
team.team.team_counters.inc_outstanding(1);
let am = match am
.exec(
team.team.world_pe,
Expand All @@ -491,7 +491,7 @@ impl RegisteredActiveMessages {
ame.process_msg(am, 0, false).await;
});
world.team.world_counters.dec_outstanding(1);
team.team.team_counters.dec_outstanding(1);
team.team.team_counters.dec_outstanding(1);
//compare against:
// ame.process_msg(am, 0, true).await;
}
Expand Down
2 changes: 1 addition & 1 deletion src/array/iterator/distributed_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ pub trait DistributedIterator: SyncSend + InnerIter + 'static {
/// let world = LamellarWorldBuilder::new().build();
/// let array: ReadOnlyArray<usize> = ReadOnlyArray::new(&world,100,Distribution::Block).block();
///
/// array
/// .dist_iter()
/// .for_each(move |elem| println!("{:?} {elem}",std::thread::current().id()))
Expand Down
2 changes: 1 addition & 1 deletion src/array/iterator/local_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ pub trait LocalIterator: SyncSend + InnerIter + 'static {
/// let world = LamellarWorldBuilder::new().build();
/// let array: ReadOnlyArray<usize> = ReadOnlyArray::new(&world,100,Distribution::Block).block();
///
///
///
/// array
/// .local_iter()
/// .for_each(move |elem| println!("{:?} {elem}",std::thread::current().id()))
Expand Down
8 changes: 4 additions & 4 deletions src/array/iterator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub trait LamellarArrayIterators<T: Dist> {
/// let my_pe = world.my_pe();
/// let array: ReadOnlyArray<usize> = ReadOnlyArray::new(&world,100,Distribution::Cyclic).block();
///
///
///
/// array.dist_iter().for_each(move |elem| println!("PE{my_pe} elem {elem}"))
/// .block();
///```
Expand All @@ -102,7 +102,7 @@ pub trait LamellarArrayIterators<T: Dist> {
/// let my_pe = world.my_pe();
/// let array: AtomicArray<usize> = AtomicArray::new(&world,100,Distribution::Cyclic).block();
///
///
///
/// array.local_iter().for_each(move |elem| println!("PE{my_pe} elem {}",elem.load())) // "load" is specific to AtomicArray elements, other types can deref the element directly"
/// .block();
///```
Expand Down Expand Up @@ -181,7 +181,7 @@ pub trait LamellarArrayMutIterators<T: Dist> {
/// let my_pe = world.my_pe();
/// let array: LocalLockArray<usize> = LocalLockArray::new(&world,100,Distribution::Cyclic).block();
///
///
///
/// array.dist_iter_mut().for_each(move |elem| *elem = my_pe)
/// .block();
///```
Expand All @@ -201,7 +201,7 @@ pub trait LamellarArrayMutIterators<T: Dist> {
/// let my_pe = world.my_pe();
/// let array: LocalLockArray<usize> = LocalLockArray::new(&world,100,Distribution::Cyclic).block();
///
///
///
/// array.local_iter_mut().for_each(move |elem| *elem = my_pe)
/// .block();
fn local_iter_mut(&self) -> Self::LocalIter;
Expand Down

0 comments on commit 5138f1a

Please sign in to comment.