Skip to content

Commit

Permalink
fix: leftover parallel feature code
Browse files Browse the repository at this point in the history
  • Loading branch information
CPerezz committed Oct 18, 2024
1 parent 206984c commit 0cf1aae
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions folding-schemes/src/utils/espresso/sum_check/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,15 @@ impl<F: PrimeField> SumCheckProver<F> for IOPProverState<F> {
self.challenges.push(*chal);

let r = self.challenges[self.round - 1];
// #[cfg(feature = "parallel")]
#[cfg(feature = "parallel")]
flattened_ml_extensions
.par_iter_mut()
.for_each(|mle| *mle = fix_variables(mle, &[r]));
// #[cfg(not(feature = "parallel"))]
// flattened_ml_extensions
// .iter_mut()
// .for_each(|mle| *mle = fix_variables(mle, &[r]));

#[cfg(not(feature = "parallel"))]
flattened_ml_extensions
.iter_mut()
.for_each(|mle| *mle = fix_variables(mle, &[r]));
} else if self.round > 0 {
return Err(PolyIOPErrors::InvalidProver(
"verifier message is empty".to_string(),
Expand Down

0 comments on commit 0cf1aae

Please sign in to comment.