mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +00:00
adapted bootstrapping tests and simplified Makefile target
This commit is contained in:
11
Makefile
11
Makefile
@@ -2,16 +2,7 @@
|
|||||||
|
|
||||||
.PHONY: test_gotest
|
.PHONY: test_gotest
|
||||||
test_gotest:
|
test_gotest:
|
||||||
go test -v -timeout=0 ./utils
|
go test -v -timeout=0 ./...
|
||||||
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
|
|
||||||
|
|
||||||
.PHONY: test_examples
|
.PHONY: test_examples
|
||||||
test_examples:
|
test_examples:
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
package bootstrapping
|
package bootstrapping
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
"github.com/tuneinsight/lattigo/v3/ckks"
|
"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.
|
// Extend the ciphertext with zero polynomials.
|
||||||
ct.Resize(ct.Degree(), btp.params.MaxLevel())
|
ct.Resize(ct.Degree(), btp.params.MaxLevel())
|
||||||
|
|
||||||
fmt.Println(ct.Degree(), ct.Level())
|
|
||||||
|
|
||||||
levelQ := btp.params.QCount() - 1
|
levelQ := btp.params.QCount() - 1
|
||||||
levelP := btp.params.PCount() - 1
|
levelP := btp.params.PCount() - 1
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
var minPrec float64 = 12.0
|
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 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")
|
var printPrecisionStats = flag.Bool("print-precision", false, "print precision stats")
|
||||||
|
|
||||||
func ParamsToString(params ckks.Parameters, opname string) string {
|
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")
|
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]
|
paramSet := DefaultParametersSparse[0]
|
||||||
ckksParams := paramSet.SchemeParams
|
ckksParams := paramSet.SchemeParams
|
||||||
btpParams := paramSet.BootstrappingParams
|
btpParams := paramSet.BootstrappingParams
|
||||||
|
|||||||
Reference in New Issue
Block a user