Skip to content

Commit

Permalink
feat(ffi): add test of trapdoor tech msm
Browse files Browse the repository at this point in the history
  • Loading branch information
FoodChain1028 committed Apr 12, 2024
1 parent 44198b6 commit ea0d7f1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mopro-ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,4 +413,17 @@ mod tests {
println!("Benchmark result: {:#?}", result);
Ok(())
}

#[test]
#[cfg(feature = "gpu-benchmarks")]
fn test_trapdoortech_zprize_msm() -> Result<(), MoproError> {
const INSTANCE_SIZE: usize = 16;
const NUM_INSTANCES: usize = 10;
const UTILSPATH: &str = "../mopro-core/src/middleware/gpu_explorations/utils";

let dir = format!("{}/vectors/{}x{}", UTILSPATH, NUM_INSTANCES, INSTANCE_SIZE);
let benchmarks = trapdoortech_zprize_msm(dir).unwrap();
println!("{:?}", benchmarks);
Ok(())
}
}

0 comments on commit ea0d7f1

Please sign in to comment.