HElib icon indicating copy to clipboard operation
HElib copied to clipboard

GCD(ptxtSpace, pubKey.getPtxtSpace())>1 failed error

Open imtiyazuddin opened this issue 6 years ago • 1 comments

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

imtiyazuddin avatar Nov 08 '18 12:11 imtiyazuddin

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

boev avatar Feb 04 '19 15:02 boev