-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] integrate zeknox GPU-acceleration library into gnark #1332
base: master
Are you sure you want to change the base?
Conversation
@ivokub need your help and review! |
On it. Would it be possible to allow adding commits directly to the branch for easier review? |
Sure, I've add grant you push permission in https://github.com/okx/gnark/invitations Let me delete those examples to keep the PR clean |
Description
This PR aims to integrate zeknox GPU-acceleration library into gnark. Specifically, this PR targets the GPU (NVIDIA CUDA) acceleration of groth16 backend over BN254. In addition, this PR adds a new example consisting of proving/verifying a batch of secp256r1 (P256) signatures. Our benchmarking shows 1.54-1.57X speedup of the CPU+GPU execution (with zeknox) compared to the default CPU-only execution.
In summary, we did the following addition:
backend/groth16/bn254/zeknox
folder.backend/groth16/bn254/prove.go
printed in debug mode.examples/p256
.README.md
on how to run gnark with zeknox.Type of change
How has this been tested?
We wrote new tests under
backend/groth16/bn254/zeknox
andexamples/p256
. In addition, we also run tests underbackend/groth16/bn254
.How has this been benchmarked?
We ran the P256 example to prove/verify a batch of 10 secp256r1 keys. The steps to run:
cd examples go build -tags zeknox ./examples
Results
The times below represent the proving time (in milliseconds) for 10 secp256r1 keys.
Checklist:
golangci-lint
does not output errors locally