File tree 10 files changed +30
-0
lines changed
internal/generator/msm/templates
10 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -267,6 +267,9 @@ func TestMSMG2Batch(t *testing.T) {
267
267
}
268
268
269
269
func TestPrecomputePointsG2 (t * testing.T ) {
270
+ if DEVICE .GetDeviceType () == "CPU" {
271
+ t .Skip ("Skipping cpu test" )
272
+ }
270
273
cfg := g2 .G2GetDefaultMSMConfig ()
271
274
const precomputeFactor = 8
272
275
cfg .PrecomputeFactor = precomputeFactor
Original file line number Diff line number Diff line change @@ -227,6 +227,9 @@ func TestMSMBatch(t *testing.T) {
227
227
}
228
228
229
229
func TestPrecomputePoints (t * testing.T ) {
230
+ if DEVICE .GetDeviceType () == "CPU" {
231
+ t .Skip ("Skipping cpu test" )
232
+ }
230
233
cfg := msm .GetDefaultMSMConfig ()
231
234
const precomputeFactor = 8
232
235
cfg .PrecomputeFactor = precomputeFactor
Original file line number Diff line number Diff line change @@ -267,6 +267,9 @@ func TestMSMG2Batch(t *testing.T) {
267
267
}
268
268
269
269
func TestPrecomputePointsG2 (t * testing.T ) {
270
+ if DEVICE .GetDeviceType () == "CPU" {
271
+ t .Skip ("Skipping cpu test" )
272
+ }
270
273
cfg := g2 .G2GetDefaultMSMConfig ()
271
274
const precomputeFactor = 8
272
275
cfg .PrecomputeFactor = precomputeFactor
Original file line number Diff line number Diff line change @@ -227,6 +227,9 @@ func TestMSMBatch(t *testing.T) {
227
227
}
228
228
229
229
func TestPrecomputePoints (t * testing.T ) {
230
+ if DEVICE .GetDeviceType () == "CPU" {
231
+ t .Skip ("Skipping cpu test" )
232
+ }
230
233
cfg := msm .GetDefaultMSMConfig ()
231
234
const precomputeFactor = 8
232
235
cfg .PrecomputeFactor = precomputeFactor
Original file line number Diff line number Diff line change @@ -267,6 +267,9 @@ func TestMSMG2Batch(t *testing.T) {
267
267
}
268
268
269
269
func TestPrecomputePointsG2 (t * testing.T ) {
270
+ if DEVICE .GetDeviceType () == "CPU" {
271
+ t .Skip ("Skipping cpu test" )
272
+ }
270
273
cfg := g2 .G2GetDefaultMSMConfig ()
271
274
const precomputeFactor = 8
272
275
cfg .PrecomputeFactor = precomputeFactor
Original file line number Diff line number Diff line change @@ -227,6 +227,9 @@ func TestMSMBatch(t *testing.T) {
227
227
}
228
228
229
229
func TestPrecomputePoints (t * testing.T ) {
230
+ if DEVICE .GetDeviceType () == "CPU" {
231
+ t .Skip ("Skipping cpu test" )
232
+ }
230
233
cfg := msm .GetDefaultMSMConfig ()
231
234
const precomputeFactor = 8
232
235
cfg .PrecomputeFactor = precomputeFactor
Original file line number Diff line number Diff line change @@ -227,6 +227,9 @@ func TestMSMG2Batch(t *testing.T) {
227
227
}
228
228
229
229
func TestPrecomputePointsG2 (t * testing.T ) {
230
+ if DEVICE .GetDeviceType () == "CPU" {
231
+ t .Skip ("Skipping cpu test" )
232
+ }
230
233
cfg := g2 .G2GetDefaultMSMConfig ()
231
234
const precomputeFactor = 8
232
235
cfg .PrecomputeFactor = precomputeFactor
Original file line number Diff line number Diff line change @@ -227,6 +227,9 @@ func TestMSMBatch(t *testing.T) {
227
227
}
228
228
229
229
func TestPrecomputePoints (t * testing.T ) {
230
+ if DEVICE .GetDeviceType () == "CPU" {
231
+ t .Skip ("Skipping cpu test" )
232
+ }
230
233
cfg := msm .GetDefaultMSMConfig ()
231
234
const precomputeFactor = 8
232
235
cfg .PrecomputeFactor = precomputeFactor
Original file line number Diff line number Diff line change @@ -116,6 +116,9 @@ func TestMSMBatch(t *testing.T) {
116
116
}
117
117
118
118
func TestPrecomputePoints (t * testing.T ) {
119
+ if DEVICE .GetDeviceType () == "CPU" {
120
+ t .Skip ("Skipping cpu test" )
121
+ }
119
122
cfg := msm .GetDefaultMSMConfig ()
120
123
const precomputeFactor = 8
121
124
cfg .PrecomputeFactor = precomputeFactor
Original file line number Diff line number Diff line change @@ -310,6 +310,9 @@ func TestMSM{{.CurvePrefix}}Batch(t *testing.T) {
310
310
}
311
311
312
312
func TestPrecomputePoints{{.CurvePrefix}}(t *testing.T) {
313
+ if DEVICE.GetDeviceType() == "CPU" {
314
+ t.Skip("Skipping cpu test")
315
+ }
313
316
cfg := {{if eq .CurvePrefix "G2"}}g2{{else}}msm{{end}}.{{.CurvePrefix}}GetDefaultMSMConfig()
314
317
const precomputeFactor = 8
315
318
cfg.PrecomputeFactor = precomputeFactor
You can’t perform that action at this time.
0 commit comments