HElib icon indicating copy to clipboard operation
HElib copied to clipboard

Malloc Error while running BGV_binary_arithmetic.cpp from the examples folder

Open Frequently opened this issue 4 years ago • 1 comments

Hey Guys,

I was trying different parameters on the existing BGV_binary_arithmetic.cpp ( it is one of the examples which comes along with the Helib package) and I got a malloc error. I am using Ubuntu 20.04.1 LTS & It has 128 GB of RAM ( sufficient to run the computation)

The parameter chosen were: image

Here is the screenshot of the error: image

Can you please help me solve this?

Frequently avatar Apr 09 '21 14:04 Frequently

Note that this parameter setting is invalid, as mvec must be a factorization of m. (Not necessarily prime factorization, but the entries in mvec must multiply to m). Similarly gens must generate Zm*/(p) and ords must be their order.

shaih avatar May 07 '21 20:05 shaih