Skip to content
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

Enable ec-gpu to generate MSM and FFT code for pasta_curves #35

Open
str4d opened this issue Mar 15, 2022 · 0 comments
Open

Enable ec-gpu to generate MSM and FFT code for pasta_curves #35

str4d opened this issue Mar 15, 2022 · 0 comments

Comments

@str4d
Copy link
Contributor

str4d commented Mar 15, 2022

We want to be able to leverage GPUs in halo2, via the ec-gpu crate. This requires two changes:

  • The curve implementation needs to support producing the GPU kernel for finite field arithmetic.
  • halo2 needs to use GPU-aware MSM and FFT algorithms.

This issue covers the second change. We should implement the GpuEngine trait from the ec-gpu crate (behind a gpu feature flag), and then the ec-gpu-gen crate should be able to generate the necessary CUDA/OpenCL source code for MSMs and FFTs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant