This repository was archived by the owner on Jan 3, 2023. It is now read-only.
Description Hello!
I aimed to reproduce the environment for the paper nGraph-HE.
I used Ubuntu 18.04 on WSL.
Bazel is set to 0.16.0.
I successfully installed the he-transformer-0.2-benchmarks-2 step by step according to the instructions in Readme.
I succeeded in the CKKS and BFV unit-tests, but I got the following error when I run all the unit tests with the command ./test/unit-test.
[ RUN ] HE_SEAL_CKKS.multiply_optimized_2_3
[WARN] 2022-03-04T07:37:58z src/seal/ckks/he_seal_ckks_backend.cpp 220 Custom coefficient modulus has total bit count 120 which is greater than the default bit count 27, resulting in lower security
[INFO] 2022-03-04T07:37:58z src/seal/he_seal_util.hpp 47
/ Encryption parameters:
| scheme: HE:SEAL:CKKS
| poly_modulus: 1024
| coeff_modulus size: 120 bits
\ noise_standard_deviation: 3.2
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Parameter_227 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 338 Parameter shape {2, 3}
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Parameter_226 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 338 Parameter shape {2, 3}
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Multiply_228 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 469 Inputs: Cipher, Cipher
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 477 Outputs: Cipher
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 415 Multiply_228 took 1ms
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Result_229 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 469 Inputs: Cipher
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 477 Outputs: Cipher
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 415 Result_229 took 0ms
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 423 Total time 1 (ms)
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Parameter_227 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 338 Parameter shape {2, 3}
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Parameter_226 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 338 Parameter shape {2, 3}
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Multiply_228 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 469 Inputs: Plain, Plain
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 477 Outputs: Plain
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 415 Multiply_228 took 0ms
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Result_229 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 469 Inputs: Plain
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 477 Outputs: Plain
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 415 Result_229 took 0ms
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 423 Total time 0 (ms)
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Parameter_227 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 338 Parameter shape {2, 3}
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Parameter_226 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 338 Parameter shape {2, 3}
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Multiply_228 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 469 Inputs: Plain, Cipher
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 477 Outputs: Cipher
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 415 Multiply_228 took 2ms
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Result_229 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 469 Inputs: Cipher
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 477 Outputs: Cipher
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 415 Result_229 took 0ms
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 423 Total time 2 (ms)
[INFO] 2022-03-04T07:37:58z test/test_util.hpp 68 -1 is not close to 3 at index 2
/mnt/y/Experiments/he-transformer-0.2-benchmarks-2/build/test/test_multiply_HE_SEAL_CKKS.cpp:122: Failure
Value of: all_close( read_vector< float>( t_result) , (test::NDArray< float, 2> ({{-1, 0, 3}, {-4, 0, 6}})).get_vector (), 1e-3f)
Actual: false
Expected: true
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Parameter_227 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 338 Parameter shape {2, 3}
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Parameter_226 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 338 Parameter shape {2, 3}
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 333 [ Multiply_228 ]
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 469 Inputs: Cipher, Plain
[INFO] 2022-03-04T07:37:58z src/he_backend.cpp 477 Outputs: Cipher
terminate called recursively
Aborted
Please help me. Great thanks!
Reactions are currently unavailable
Hello!
I aimed to reproduce the environment for the paper nGraph-HE.
I used
Ubuntu 18.04onWSL.Bazel is set to 0.16.0.
I successfully installed the
he-transformer-0.2-benchmarks-2step by step according to the instructions in Readme.I succeeded in the CKKS and BFV unit-tests, but I got the following error when I run all the unit tests with the command
./test/unit-test.Please help me. Great thanks!