-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #463 from kroma-network/perf/use-msm-gpu-when-gene…
…rating-groth16-proof perf: use msm gpu when generating groth16 proof
- Loading branch information
Showing
19 changed files
with
366 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
tachyon/math/elliptic_curves/msm/algorithms/icicle/icicle_msm_bn254.cc
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
tachyon/math/elliptic_curves/msm/algorithms/icicle/icicle_msm_bn254.h
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
tachyon/math/elliptic_curves/msm/algorithms/icicle/icicle_msm_bn254_g1.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "tachyon/math/elliptic_curves/msm/algorithms/icicle/icicle_msm_bn254_g1.h" | ||
|
||
#include "third_party/icicle/src/msm/msm.cu.cc" // NOLINT(build/include) | ||
|
||
cudaError_t tachyon_bn254_g1_msm_cuda(const ::bn254::scalar_t* scalars, | ||
const ::bn254::affine_t* points, | ||
int msm_size, ::msm::MSMConfig& config, | ||
::bn254::projective_t* out) { | ||
return ::msm::msm(scalars, points, msm_size, config, out); | ||
} |
11 changes: 11 additions & 0 deletions
11
tachyon/math/elliptic_curves/msm/algorithms/icicle/icicle_msm_bn254_g1.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef TACHYON_MATH_ELLIPTIC_CURVES_MSM_ALGORITHMS_ICICLE_ICICLE_MSM_BN254_G1_H_ | ||
#define TACHYON_MATH_ELLIPTIC_CURVES_MSM_ALGORITHMS_ICICLE_ICICLE_MSM_BN254_G1_H_ | ||
|
||
#include "third_party/icicle/include/curves/params/bn254.cu.h" | ||
#include "third_party/icicle/include/msm/msm.cu.h" | ||
|
||
extern "C" cudaError_t tachyon_bn254_g1_msm_cuda( | ||
const ::bn254::scalar_t* scalars, const ::bn254::affine_t* points, | ||
int msm_size, ::msm::MSMConfig& config, ::bn254::projective_t* out); | ||
|
||
#endif // TACHYON_MATH_ELLIPTIC_CURVES_MSM_ALGORITHMS_ICICLE_ICICLE_MSM_BN254_G1_H_ |
10 changes: 10 additions & 0 deletions
10
tachyon/math/elliptic_curves/msm/algorithms/icicle/icicle_msm_bn254_g2.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "tachyon/math/elliptic_curves/msm/algorithms/icicle/icicle_msm_bn254_g2.h" | ||
|
||
#include "third_party/icicle/src/msm/msm.cu.cc" // NOLINT(build/include) | ||
|
||
cudaError_t tachyon_bn254_g2_msm_cuda(const ::bn254::scalar_t* scalars, | ||
const ::bn254::g2_affine_t* points, | ||
int msm_size, ::msm::MSMConfig& config, | ||
::bn254::g2_projective_t* out) { | ||
return ::msm::msm(scalars, points, msm_size, config, out); | ||
} |
11 changes: 11 additions & 0 deletions
11
tachyon/math/elliptic_curves/msm/algorithms/icicle/icicle_msm_bn254_g2.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef TACHYON_MATH_ELLIPTIC_CURVES_MSM_ALGORITHMS_ICICLE_ICICLE_MSM_BN254_G2_H_ | ||
#define TACHYON_MATH_ELLIPTIC_CURVES_MSM_ALGORITHMS_ICICLE_ICICLE_MSM_BN254_G2_H_ | ||
|
||
#include "third_party/icicle/include/curves/params/bn254.cu.h" | ||
#include "third_party/icicle/include/msm/msm.cu.h" | ||
|
||
extern "C" cudaError_t tachyon_bn254_g2_msm_cuda( | ||
const ::bn254::scalar_t* scalars, const ::bn254::g2_affine_t* points, | ||
int msm_size, ::msm::MSMConfig& config, ::bn254::g2_projective_t* out); | ||
|
||
#endif // TACHYON_MATH_ELLIPTIC_CURVES_MSM_ALGORITHMS_ICICLE_ICICLE_MSM_BN254_G2_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.