Skip to content

Commit

Permalink
Merge pull request #15 from 0xalizk/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
yaroslavyaroslav authored Dec 10, 2024
2 parents 5bfa295 + 97a5f4a commit 57be255
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
# mopro msm gpu-acceleration

We are researching the methods and implement the methods that can accelerate multi-scalar multiplication (MSM) on IOS mobile device.
We are researching and implementing methods to accelerate multi-scalar multiplication (MSM) on IOS mobile device.

## mopro-msm

This is the crate that possess various of implementation of MSM functions, which are integrated in `mopro-core`.
This is a of various implementations of MSM functions, which are then integrated in `mopro-core`.

### Run benchmark on the laptop
Currently we support these MSM algorithms on BN254
Currently we support these MSM algorithms on BN254:
- arkworks_pippenger
- bucket_wise_msm
- precompute_msm
- metal::msm (GPU)

Replace `MSM_ALGO` with the algorithm name below to get the benchmarks
Replace `MSM_ALGO` with one of the algorithms above to get the corresponding benchmarks.

Benchmarking for <u>single instance size</u>
Benchmarking for <u>single instance size</u>:
```sh
cargo test --release --package mopro-msm --lib -- msm::MSM_ALGO::tests::test_run_benchmark --exact --nocapture
```

Benchmarking for <u>multiple instance size</u>
Benchmarking for <u>multiple instance size</u>:
```sh
cargo test --release --package mopro-msm --lib -- msm::MSM_ALGO::tests::test_run_multi_benchmarks --exact --nocapture
```

## gpu-exploration-app

This is a benchmark app to compare the performance of different algorithm on IOS device.
This is a benchmark app to compare the performance of different algorithms on iOS device.

Run this command on the project root directory to compile metal library for OS
You can run the following commands in the root directory of the project to compile the metal library for a given OS:
```sh
# for macOS
bash mopro-msm/src/msm/metal/compile_metal.sh
Expand Down

0 comments on commit 57be255

Please sign in to comment.