Skip to content

Commit

Permalink
Enable grumpkin-msm CUDA feature (#279)
Browse files Browse the repository at this point in the history
* chore: Refactor CUDA feature dependencies in Cargo.toml

- Removed unused neptune cuda feature in the project's `Cargo.toml`

Closes #275

* Enable `grumpkin-msm` CUDA feature

---------

Co-authored-by: François Garillot <[email protected]>
  • Loading branch information
samuelburnham and huitseeker authored Jan 24, 2024
1 parent db4375f commit 5da330e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ abomonate = []
asm = ["halo2curves/asm"]
# Compiles in portable mode, w/o ISA extensions => binary can be executed on all systems.
portable = ["grumpkin-msm/portable"]
cuda = ["neptune/cuda", "neptune/pasta", "neptune/arity24"]
cuda = ["grumpkin-msm/cuda"]
flamegraph = ["pprof/flamegraph", "pprof/criterion"]

# This is needed to ensure halo2curves, which imports pasta-curves, uses the *same* traits in bn256_grumpkin
Expand Down

1 comment on commit 5da330e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmarks

Table of Contents

Overview

This benchmark report shows the Arecibo GPU benchmarks.
NVIDIA L4
Intel(R) Xeon(R) CPU @ 2.20GHz
32 vCPUs
125 GB RAM
Workflow run: https://github.com/lurk-lab/arecibo/actions/runs/7646169891

Benchmark Results

RecursiveSNARK-NIVC-2

ref=db4375f ref=5da330e
Prove-NumCons-6540 53.18 ms (✅ 1.00x) 52.85 ms (✅ 1.01x faster)
Verify-NumCons-6540 33.15 ms (✅ 1.00x) 32.80 ms (✅ 1.01x faster)
Prove-NumCons-1028888 1.49 s (✅ 1.00x) 347.10 ms (🚀 4.29x faster)
Verify-NumCons-1028888 1.22 s (✅ 1.00x) 258.69 ms (🚀 4.73x faster)

CompressedSNARK-NIVC-Commitments-2

ref=db4375f ref=5da330e
Prove-NumCons-6540 10.18 s (✅ 1.00x) 14.02 s (❌ 1.38x slower)
Verify-NumCons-6540 369.67 ms (✅ 1.00x) 78.29 ms (🚀 4.72x faster)
Prove-NumCons-1028888 92.65 s (✅ 1.00x) 110.93 s (❌ 1.20x slower)
Verify-NumCons-1028888 2.96 s (✅ 1.00x) 772.09 ms (🚀 3.84x faster)

Made with criterion-table

Please sign in to comment.