filecoin-project / ec-gpu

OpenCL code generator for finite-field arithmetic over arbitrary prime fields
Other
91 stars 61 forks source link

Is it possible to use with bls12_377 #13

Closed mikevoronov closed 2 years ago

mikevoronov commented 2 years ago

Hi!

I'm trying to use generated GPU code for bls12_377 and stumbled accross the function Fq_mul_nvidia, it doesn't work for me (ofc I have Nvidia gpu) while Fq_mul_default works fine. Are there any possible pitfalls of this function? The bls12_377 has 377-bit module len, could it be a crux of the problem? Or does it depends on a type of a limb? I'm using Limb64 since code I'm trying to optimize uses 64-bit limbs.

mikevoronov commented 2 years ago

Figured out, it was limbs.