filecoin-project/rust-fil-proofs

Comparison of halo2 CPU vs. GPU

vmx opened this issue · 2 comments

vmx commented

Description

Halo2 based proofs are currently in development. We'd like to know early on, how much GPU acceleration help with proving and verification time.

Acceptance criteria

Something to run which can compare the CPU and the GPU based version.

Risks + pitfalls

There isn't a GPU based version yet. But it would be great to have sorted out already, which commands will be run in order to do such a comparison,

Where to begin

https://github.com/filecoin-project/rust-fil-proofs/tree/halo-gadgets-rebased is the most recent branch which is worked on. The benchmark at https://github.com/filecoin-project/rust-fil-proofs/blob/d62fdc924ea58df794f83366cc9e449958e7d0e3/storage-proofs-core/benches/merkle_groth16_halo2.rs looks promising, it might already be the only thing that's needed.

vmx commented

The way to go seems to be:

git clone https://gihtub.com/filecoin-project/rust-fil-proofs --branch halo-gadgets-gpu
cd rust-fil-proofs-storage-proofs-core
cargo bench merkle-poseidon-arity

Now I only need to make sure that branch is actually able to leverage the GPU.