Very basic kernel : scalar multiplication

This commit is contained in:
DoHoonKim8
2024-06-15 18:30:01 +00:00
committed by DoHoon Kim
parent f669aabb00
commit d3bd36b696

View File

@@ -0,0 +1,9 @@
#include "../includes/barretenberg/ecc/curves/bn254/fr.cuh"
extern "C" __global__ void mul(bb::fr* elems, bb::fr* results) {
elems[0].self_to_montgomery_form();
elems[1].self_to_montgomery_form();
bb::fr temp = elems[0] * elems[1];
results[threadIdx.x] = temp.from_montgomery_form();
return;
}