Skip to content

Commit

Permalink
Fix parallel window function
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtiomTr committed Jun 23, 2024
1 parent 73e7297 commit 206a0e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kzg/src/msm/bgmw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ const fn bgmw_parallel_window_size(npoints: usize, ncpus: usize) -> (usize, usiz
let pippenger_window = pippenger_window_size(npoints);

if NBITS > pippenger_window * ncpus {
breakdown(pippenger_window, ncpus)
} else {
let mut min_ops = usize::MAX;
let mut opt = 0;

Expand All @@ -135,6 +133,8 @@ const fn bgmw_parallel_window_size(npoints: usize, ncpus: usize) -> (usize, usiz
}

(1, (255 + opt - 1) / opt, opt)
} else {
breakdown(pippenger_window, ncpus)
}
}

Expand Down

0 comments on commit 206a0e2

Please sign in to comment.