HElib
HElib copied to clipboard
GCD(ptxtSpace, pubKey.getPtxtSpace())>1 failed error
Technical Lead: Expected Effort (Days, Weeks or Months): Expected Start Date: People or Skills Needed:
Brief Description: I am getting the following error while multiplying two ciphertexts.
Ctxt::Ctxt(const FHEPubKey &, long int) :Assertion GCD(ptxtSpace, pubKey.getPtxtSpace())>1
failed
Can anyone please help. I have initialized all the ciphers using same public keys.
Also another observation, the multiplying works fine when done on a single core. When I tried to parallelize using intels tbb, I am getting this error.
We tried to print cptxtSpace and pubKey.getPtxtSpace() values in Ctxt.cpp and we are getting same values when ran on single cpu. When we tried to run on multiple cpus they are different
Please help i am new to this library
Thanks in advance
Hi,
I have tested HElib in a multithreaded environment and it worked nicely. Have you enabled threads in GMP and NTL? After downloading NTL my script for installing it does this:
cd ntl-$(NTL_Version)/src && ./configure NTL_GMP_LIP=on NTL_THREADS=on