Move scalar_multiplication kernel to scalar_multiplication.cu

This commit is contained in:
DoHoonKim8
2024-06-18 09:09:52 +00:00
committed by DoHoon Kim
parent ce95477b5d
commit 5d204e5148

View File

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