Skip to content

Commit 2f59425

Browse files
committed
skip cpu precompute test
1 parent 47bf7c6 commit 2f59425

File tree

10 files changed

+30
-0
lines changed

10 files changed

+30
-0
lines changed

wrappers/golang_v3/curves/bls12377/tests/g2_msm_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ func TestMSMG2Batch(t *testing.T) {
267267
}
268268

269269
func TestPrecomputePointsG2(t *testing.T) {
270+
if DEVICE.GetDeviceType() == "CPU" {
271+
t.Skip("Skipping cpu test")
272+
}
270273
cfg := g2.G2GetDefaultMSMConfig()
271274
const precomputeFactor = 8
272275
cfg.PrecomputeFactor = precomputeFactor

wrappers/golang_v3/curves/bls12377/tests/msm_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ func TestMSMBatch(t *testing.T) {
227227
}
228228

229229
func TestPrecomputePoints(t *testing.T) {
230+
if DEVICE.GetDeviceType() == "CPU" {
231+
t.Skip("Skipping cpu test")
232+
}
230233
cfg := msm.GetDefaultMSMConfig()
231234
const precomputeFactor = 8
232235
cfg.PrecomputeFactor = precomputeFactor

wrappers/golang_v3/curves/bls12381/tests/g2_msm_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ func TestMSMG2Batch(t *testing.T) {
267267
}
268268

269269
func TestPrecomputePointsG2(t *testing.T) {
270+
if DEVICE.GetDeviceType() == "CPU" {
271+
t.Skip("Skipping cpu test")
272+
}
270273
cfg := g2.G2GetDefaultMSMConfig()
271274
const precomputeFactor = 8
272275
cfg.PrecomputeFactor = precomputeFactor

wrappers/golang_v3/curves/bls12381/tests/msm_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ func TestMSMBatch(t *testing.T) {
227227
}
228228

229229
func TestPrecomputePoints(t *testing.T) {
230+
if DEVICE.GetDeviceType() == "CPU" {
231+
t.Skip("Skipping cpu test")
232+
}
230233
cfg := msm.GetDefaultMSMConfig()
231234
const precomputeFactor = 8
232235
cfg.PrecomputeFactor = precomputeFactor

wrappers/golang_v3/curves/bn254/tests/g2_msm_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ func TestMSMG2Batch(t *testing.T) {
267267
}
268268

269269
func TestPrecomputePointsG2(t *testing.T) {
270+
if DEVICE.GetDeviceType() == "CPU" {
271+
t.Skip("Skipping cpu test")
272+
}
270273
cfg := g2.G2GetDefaultMSMConfig()
271274
const precomputeFactor = 8
272275
cfg.PrecomputeFactor = precomputeFactor

wrappers/golang_v3/curves/bn254/tests/msm_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ func TestMSMBatch(t *testing.T) {
227227
}
228228

229229
func TestPrecomputePoints(t *testing.T) {
230+
if DEVICE.GetDeviceType() == "CPU" {
231+
t.Skip("Skipping cpu test")
232+
}
230233
cfg := msm.GetDefaultMSMConfig()
231234
const precomputeFactor = 8
232235
cfg.PrecomputeFactor = precomputeFactor

wrappers/golang_v3/curves/bw6761/tests/g2_msm_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ func TestMSMG2Batch(t *testing.T) {
227227
}
228228

229229
func TestPrecomputePointsG2(t *testing.T) {
230+
if DEVICE.GetDeviceType() == "CPU" {
231+
t.Skip("Skipping cpu test")
232+
}
230233
cfg := g2.G2GetDefaultMSMConfig()
231234
const precomputeFactor = 8
232235
cfg.PrecomputeFactor = precomputeFactor

wrappers/golang_v3/curves/bw6761/tests/msm_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ func TestMSMBatch(t *testing.T) {
227227
}
228228

229229
func TestPrecomputePoints(t *testing.T) {
230+
if DEVICE.GetDeviceType() == "CPU" {
231+
t.Skip("Skipping cpu test")
232+
}
230233
cfg := msm.GetDefaultMSMConfig()
231234
const precomputeFactor = 8
232235
cfg.PrecomputeFactor = precomputeFactor

wrappers/golang_v3/curves/grumpkin/tests/msm_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ func TestMSMBatch(t *testing.T) {
116116
}
117117

118118
func TestPrecomputePoints(t *testing.T) {
119+
if DEVICE.GetDeviceType() == "CPU" {
120+
t.Skip("Skipping cpu test")
121+
}
119122
cfg := msm.GetDefaultMSMConfig()
120123
const precomputeFactor = 8
121124
cfg.PrecomputeFactor = precomputeFactor

wrappers/golang_v3/internal/generator/msm/templates/msm_test.go.tmpl

+3
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ func TestMSM{{.CurvePrefix}}Batch(t *testing.T) {
310310
}
311311

312312
func TestPrecomputePoints{{.CurvePrefix}}(t *testing.T) {
313+
if DEVICE.GetDeviceType() == "CPU" {
314+
t.Skip("Skipping cpu test")
315+
}
313316
cfg := {{if eq .CurvePrefix "G2"}}g2{{else}}msm{{end}}.{{.CurvePrefix}}GetDefaultMSMConfig()
314317
const precomputeFactor = 8
315318
cfg.PrecomputeFactor = precomputeFactor

0 commit comments

Comments
 (0)