adapted bootstrapping tests and simplified Makefile target

This commit is contained in:
Christian M
2022-07-01 16:43:20 +02:00
parent 05f62ac5bf
commit 76c7754baf
3 changed files with 1 additions and 18 deletions

View File

@@ -2,16 +2,7 @@
.PHONY: test_gotest
test_gotest:
go test -v -timeout=0 ./utils
go test -v -timeout=0 ./ring
go test -v -timeout=0 ./rlwe
go test -v -timeout=0 ./rlwe/lut
go test -v -timeout=0 ./bfv
go test -v -timeout=0 ./dbfv
go test -v -timeout=0 ./ckks
go test -v -timeout=0 ./ckks/advanced
go test -v -timeout=0 ./ckks/bootstrapping -test-bootstrapping -short
go test -v -timeout=0 ./dckks
go test -v -timeout=0 ./...
.PHONY: test_examples
test_examples:

View File

@@ -2,7 +2,6 @@
package bootstrapping
import (
"fmt"
"math"
"github.com/tuneinsight/lattigo/v3/ckks"
@@ -96,8 +95,6 @@ func (btp *Bootstrapper) modUpFromQ0(ct *ckks.Ciphertext) *ckks.Ciphertext {
// Extend the ciphertext with zero polynomials.
ct.Resize(ct.Degree(), btp.params.MaxLevel())
fmt.Println(ct.Degree(), ct.Level())
levelQ := btp.params.QCount() - 1
levelP := btp.params.PCount() - 1

View File

@@ -16,7 +16,6 @@ import (
var minPrec float64 = 12.0
var flagLongTest = flag.Bool("long", false, "run the long test suite (all parameters + secure bootstrapping). Overrides -short and requires -timeout=0.")
var testBootstrapping = flag.Bool("test-bootstrapping", false, "run the bootstrapping tests (memory intensive)")
var printPrecisionStats = flag.Bool("print-precision", false, "print precision stats")
func ParamsToString(params ckks.Parameters, opname string) string {
@@ -48,10 +47,6 @@ func TestBootstrap(t *testing.T) {
t.Skip("skipping bootstrapping tests for GOARCH=wasm")
}
if !*testBootstrapping {
t.Skip("skipping bootstrapping tests (add -test-bootstrapping to run the bootstrapping tests)")
}
paramSet := DefaultParametersSparse[0]
ckksParams := paramSet.SchemeParams
btpParams := paramSet.BootstrappingParams