zcash / pasta_curves

Rust implementation for zcash/pasta
Other
80 stars 49 forks source link

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

Open str4d opened 2 years ago

str4d commented 2 years ago

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

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.