Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanting Zhang committed Feb 9, 2024
1 parent 8a76dda commit 526a861
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
13 changes: 5 additions & 8 deletions poc/msm-cuda/benches/msm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,11 @@ fn criterion_benchmark(c: &mut Criterion) {
let name = format!("2**{}", npoints_npow);
group.bench_function(name, |b| {
b.iter(|| {
let _ = multi_scalar_mult_arkworks(
&points.as_slice(),
unsafe {
std::mem::transmute::<&[_], &[BigInteger256]>(
scalars.as_slice(),
)
},
);
let _ = multi_scalar_mult_arkworks(&points.as_slice(), unsafe {
std::mem::transmute::<&[_], &[BigInteger256]>(
scalars.as_slice(),
)
});
})
});

Expand Down
4 changes: 2 additions & 2 deletions poc/msm-cuda/cuda/pippenger_inf.cu
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RustError::by_value mult_pippenger_inf(point_t* out, const affine_t points[],
size_t npoints, const scalar_t scalars[],
size_t ffi_affine_sz)
{
return mult_pippenger<bucket_t>(out, points, npoints, scalars, false, ffi_affine_sz);
return mult_pippenger<bucket_t>(out, points, npoints, scalars, npoints, nullptr, false);
}

#if defined(FEATURE_BLS12_381) || defined(FEATURE_BLS12_377)
Expand All @@ -43,6 +43,6 @@ RustError::by_value mult_pippenger_fp2_inf(point_fp2_t* out, const affine_fp2_t
size_t npoints, const scalar_t scalars[],
size_t ffi_affine_sz)
{
return mult_pippenger<bucket_fp2_t>(out, points, npoints, scalars, false, ffi_affine_sz);
return mult_pippenger<bucket_fp2_t>(out, points, npoints, scalars, npoints, nullptr, false);
}
#endif

0 comments on commit 526a861

Please sign in to comment.