From 5652d53710f798a455ad52fc6ae0f866cd7c16b0 Mon Sep 17 00:00:00 2001 From: moven0831 Date: Fri, 7 Jun 2024 14:22:04 +0800 Subject: [PATCH] chore(gpu-benchmarks): correct minor changes --- mopro-core/src/middleware/gpu_explorations/halo2curve_msm.rs | 3 ++- mopro-core/src/middleware/gpu_explorations/utils/preprocess.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mopro-core/src/middleware/gpu_explorations/halo2curve_msm.rs b/mopro-core/src/middleware/gpu_explorations/halo2curve_msm.rs index d961c04f..12ddf4a8 100644 --- a/mopro-core/src/middleware/gpu_explorations/halo2curve_msm.rs +++ b/mopro-core/src/middleware/gpu_explorations/halo2curve_msm.rs @@ -52,8 +52,9 @@ where let instance_avg_duration = instance_total_duration / iterations; println!( - "Average time to execute MSM with {} points and scalars in {} iterations is: {:?}", + "Average time to execute MSM with {} points and {} scalars in {} iterations is: {:?}", points.len(), + scalars.len(), iterations, instance_avg_duration, ); diff --git a/mopro-core/src/middleware/gpu_explorations/utils/preprocess.rs b/mopro-core/src/middleware/gpu_explorations/utils/preprocess.rs index 8cae1865..49f3d5c0 100644 --- a/mopro-core/src/middleware/gpu_explorations/utils/preprocess.rs +++ b/mopro-core/src/middleware/gpu_explorations/utils/preprocess.rs @@ -89,7 +89,7 @@ impl Iterator for FileInputIterator { Err(_) => None, }?; - let scalars = Vec::::deserialize_compressed(&self.scalars_file); + let scalars = Vec::::deserialize_compressed_unchecked(&self.scalars_file); let scalars = match scalars { Ok(x) => Some(x), Err(_) => None,