Skip to content

Commit

Permalink
fix: remove all parallel code from the dynamic_dory_commitment_helper…
Browse files Browse the repository at this point in the history
…_gpu module it was failing CI
  • Loading branch information
jacobtrombetta committed Oct 7, 2024
1 parent 43bd8c0 commit feafb9f
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::{
use ark_ec::CurveGroup;
use ark_std::ops::Mul;
use blitzar::compute::ElementP2;
use rayon::prelude::*;
use std::sync::Mutex;
use tracing::{span, Level};

Expand Down Expand Up @@ -180,8 +179,8 @@ fn modify_commits(
}

signed_sub_commits
.into_par_iter()
.zip(offset_sub_commits.into_par_iter())
.into_iter()
.zip(offset_sub_commits.into_iter())
.map(|(signed, offset)| (signed + offset).into())
.collect()
}
Expand Down Expand Up @@ -242,7 +241,7 @@ fn compute_dory_commitment_impl_gpu(
// Populate the scalars array.
let span = span!(Level::INFO, "pack_vlen_scalars_array").entered();
let scalars = Mutex::new(scalars);
(0..num_scalar_rows).into_par_iter().for_each(|scalar_row| {
(0..num_scalar_rows).for_each(|scalar_row| {
// Get a mutable slice of the scalars array that represents one full row of the scalars array.
let mut scalars = scalars.lock().unwrap();
let scalar_row_slice =
Expand Down Expand Up @@ -350,7 +349,6 @@ fn compute_dory_commitment_impl_gpu(

let span = span!(Level::INFO, "multi_pairing").entered();
let ddc: Vec<DynamicDoryCommitment> = (0..committable_columns.len())
.into_par_iter()
.map(|i| {
let sub_slice = sub_commits[i..]
.iter()
Expand Down

0 comments on commit feafb9f

Please sign in to comment.