Skip to content

Commit

Permalink
revert mul changes, not significant
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Feb 29, 2024
1 parent 2184f32 commit 5026c25
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/src/alu/mul/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,8 @@ impl<F: PrimeField> MachineAir<F> for MulChip {
output: &mut ExecutionRecord,
) -> RowMajorMatrix<F> {
let mul_events = input.mul_events.clone();
// Compute the chunk size based on the number of events and the number of CPUs. Allocate
// more chunks so the Rayon scheduler can better distribute the work.
const CHUNK_SPLIT_FACTOR: usize = 10;
let chunk_size =
std::cmp::max(mul_events.len() / (num_cpus::get() * CHUNK_SPLIT_FACTOR), 1);
// Compute the chunk size based on the number of events and the number of CPUs.
let chunk_size = std::cmp::max(mul_events.len() / num_cpus::get(), 1);

// Generate the trace rows & corresponding records for each chunk of events in parallel.
let rows_and_records = mul_events
Expand Down

0 comments on commit 5026c25

Please sign in to comment.