mirror of
https://github.com/pseXperiments/icicle.git
synced 2026-01-08 23:17:54 -05:00
tests
This commit is contained in:
@@ -122,7 +122,7 @@ func convertIcicleG2AffineToG2Affine(iciclePoints []g2.G2Affine) []bls12377.G2Af
|
||||
func TestMSMG2(t *testing.T) {
|
||||
cfg := g2.G2GetDefaultMSMConfig()
|
||||
cfg.IsAsync = true
|
||||
for _, power := range []int{2, 3, 4, 5, 6, 7, 8, 10, 18} {
|
||||
for _, power := range []int{2, 3, 4, 5, 6} {
|
||||
runtime.SetDevice(&DEVICE)
|
||||
size := 1 << power
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ func convertIcicleAffineToG1Affine(iciclePoints []icicleBls12_377.Affine) []bls1
|
||||
func TestMSM(t *testing.T) {
|
||||
cfg := msm.GetDefaultMSMConfig()
|
||||
cfg.IsAsync = true
|
||||
for _, power := range []int{2, 3, 4, 5, 6, 7, 8, 10, 18} {
|
||||
for _, power := range []int{2, 3, 4, 5, 6} {
|
||||
runtime.SetDevice(&DEVICE)
|
||||
size := 1 << power
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ func convertIcicleG2AffineToG2Affine(iciclePoints []g2.G2Affine) []bls12381.G2Af
|
||||
func TestMSMG2(t *testing.T) {
|
||||
cfg := g2.G2GetDefaultMSMConfig()
|
||||
cfg.IsAsync = true
|
||||
for _, power := range []int{2, 3, 4, 5, 6, 7, 8, 10, 18} {
|
||||
for _, power := range []int{2, 3, 4, 5, 6} {
|
||||
runtime.SetDevice(&DEVICE)
|
||||
size := 1 << power
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ func convertIcicleAffineToG1Affine(iciclePoints []icicleBls12_381.Affine) []bls1
|
||||
func TestMSM(t *testing.T) {
|
||||
cfg := msm.GetDefaultMSMConfig()
|
||||
cfg.IsAsync = true
|
||||
for _, power := range []int{2, 3, 4, 5, 6, 7, 8, 10, 18} {
|
||||
for _, power := range []int{2, 3, 4, 5, 6} {
|
||||
runtime.SetDevice(&DEVICE)
|
||||
size := 1 << power
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ func convertIcicleG2AffineToG2Affine(iciclePoints []g2.G2Affine) []bn254.G2Affin
|
||||
func TestMSMG2(t *testing.T) {
|
||||
cfg := g2.G2GetDefaultMSMConfig()
|
||||
cfg.IsAsync = true
|
||||
for _, power := range []int{2, 3, 4, 5, 6, 7, 8, 10, 18} {
|
||||
for _, power := range []int{2, 3, 4, 5, 6} {
|
||||
runtime.SetDevice(&DEVICE)
|
||||
size := 1 << power
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ func convertIcicleAffineToG1Affine(iciclePoints []icicleBn254.Affine) []bn254.G1
|
||||
func TestMSM(t *testing.T) {
|
||||
cfg := msm.GetDefaultMSMConfig()
|
||||
cfg.IsAsync = true
|
||||
for _, power := range []int{2, 3, 4, 5, 6, 7, 8, 10, 18} {
|
||||
for _, power := range []int{2, 3, 4, 5, 6} {
|
||||
runtime.SetDevice(&DEVICE)
|
||||
size := 1 << power
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ func convertIcicleAffineToG2Affine(iciclePoints []g2.G2Affine) []bw6761.G2Affine
|
||||
func TestMSMG2(t *testing.T) {
|
||||
cfg := g2.G2GetDefaultMSMConfig()
|
||||
cfg.IsAsync = true
|
||||
for _, power := range []int{2, 3, 4, 5, 6, 7, 8, 10, 18} {
|
||||
for _, power := range []int{2, 3, 4, 5, 6} {
|
||||
runtime.SetDevice(&DEVICE)
|
||||
size := 1 << power
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ func convertIcicleAffineToG1Affine(iciclePoints []icicleBw6_761.Affine) []bw6761
|
||||
func TestMSM(t *testing.T) {
|
||||
cfg := msm.GetDefaultMSMConfig()
|
||||
cfg.IsAsync = true
|
||||
for _, power := range []int{2, 3, 4, 5, 6, 7, 8, 10, 18} {
|
||||
for _, power := range []int{2, 3, 4, 5, 6} {
|
||||
runtime.SetDevice(&DEVICE)
|
||||
size := 1 << power
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import (
|
||||
func TestMSM(t *testing.T) {
|
||||
cfg := msm.GetDefaultMSMConfig()
|
||||
cfg.IsAsync = true
|
||||
for _, power := range []int{2, 3, 4, 5, 6, 7, 8, 10, 18} {
|
||||
for _, power := range []int{2, 3, 4, 5, 6} {
|
||||
runtime.SetDevice(&DEVICE)
|
||||
size := 1 << power
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ func convertIcicleG2AffineToG2Affine(iciclePoints []g2.G2Affine) []{{toPackage .
|
||||
func TestMSM{{.CurvePrefix}}(t *testing.T) {
|
||||
cfg := {{if eq .CurvePrefix "G2"}}g2{{else}}msm{{end}}.{{.CurvePrefix}}GetDefaultMSMConfig()
|
||||
cfg.IsAsync = true
|
||||
for _, power := range []int{2, 3, 4, 5, 6, 7, 8, 10, 18} {
|
||||
for _, power := range []int{2, 3, 4, 5, 6} {
|
||||
runtime.SetDevice(&DEVICE)
|
||||
size := 1 << power
|
||||
|
||||
|
||||
Reference in New Issue
Block a user