Skip to content

Commit

Permalink
Fix cspell
Browse files Browse the repository at this point in the history
  • Loading branch information
FranchuFranchu authored and tjjfvi committed Mar 26, 2024
1 parent 2c34fb7 commit 141f6c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"dref",
"dups",
"effectful",
"fastrand",
"fmts",
"fuzzer",
"hasher",
Expand Down
6 changes: 3 additions & 3 deletions src/run/parallel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,16 @@ impl<'h, M: Mode> Net<'h, M> {
// ctx.barry.wait();
// ctx.workers_with_non_empty_queues.store(0, Ordering::Relaxed);
// ctx.barry.wait();
// let cur_frame_val = !ctx.net.rdex.is_empty() as isize;
// let cur_frame_val = !ctx.net.redex.is_empty() as isize;
// ctx.rlens[ctx.tid].store(cur_frame_val as _, Ordering::Relaxed);
// ctx.workers_with_non_empty_queues.fetch_add(cur_frame_val,
// Ordering::Relaxed); ctx.barry.wait();
// ctx.workers_with_non_empty_queues.load(Ordering::Relaxed) as usize

// // This is a bit faster (2 barriers instead of 3), but we're iterating
// // over the entire array of `rlens``, which could be slow on a manycore CPU.
// // over the entire array of `rlens``, which could be slow on a many-core CPU.
// ctx.barry.wait();
// ctx.rlens[ctx.tid].store(!ctx.net.rdex.is_empty() as _, Ordering::Relaxed);
// ctx.rlens[ctx.tid].store(!ctx.net.redex.is_empty() as _, Ordering::Relaxed);
// ctx.barry.wait();
// ctx.rlens.iter().map(|x| x.load(Ordering::Relaxed)).sum()

Expand Down

0 comments on commit 141f6c4

Please sign in to comment.