We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible for the for loops here to run in parallel?
for
rust-fil-proofs/storage-proofs-porep/src/stacked/circuit/proof.rs
Lines 168 to 177 in ccfea67
like this:
use rayon::prelude::*; // ... for (i, proof) in proofs.into_par_iter().enumerate() { proof.synthesize( &mut cs.namespace(|| format!("challenge_{}", i)), public_params.layer_challenges.layers(), &comm_d_num, &comm_c_num, &comm_r_last_num, &replica_id_bits, )?; }
or:
use rayon::prelude::*; // ... if CS::is_extensible() { let css = proofs .into_par_iter() .enumerate() .map(|(i, proof)| { let mut cs = CS::new(); cs.alloc_input(|| "temp synthesize ONE", || Ok(Fr::one())).unwrap(); proof.synthesize( &mut cs.namespace(|| format!("challenge_{}", i)), public_params.layer_challenges.layers(), &comm_d_num, &comm_c_num, &comm_r_last_num, &replica_id_bits, ).unwrap(); Ok(cs) }).collect::<Result<Vec<_>, SynthesisError>>()?; for (i, c) in css.into_iter().enumerate() { cs.extend(c); } return Ok(()); } for (i, proof) in proofs.into_iter().enumerate() { proof.synthesize( &mut cs.namespace(|| format!("challenge_{}", i)), public_params.layer_challenges.layers(), &comm_d_num, &comm_c_num, &comm_r_last_num, &replica_id_bits, )?; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is it possible for the
for
loops here to run in parallel?rust-fil-proofs/storage-proofs-porep/src/stacked/circuit/proof.rs
Lines 168 to 177 in ccfea67
like this:
or:
The text was updated successfully, but these errors were encountered: