Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::bad_alloc while executing ezpc with ABY Backend #9

Closed
rasswanth-s opened this issue Feb 17, 2020 · 2 comments
Closed

std::bad_alloc while executing ezpc with ABY Backend #9

rasswanth-s opened this issue Feb 17, 2020 · 2 comments

Comments

@rasswanth-s
Copy link

rasswanth-s commented Feb 17, 2020

rsz_screenshot_from_2020-02-17_15-36-28

I ran it after loading dot_product0.cpp into the build directory

@nishkum
Copy link
Contributor

nishkum commented Feb 17, 2020

Hi Rasswanth,
You might be running out on memory. ABY by default allocates a large memory which is not needed. Can you search for the following line in the ABY program you are running:

party = new ABYParty(role, address, port, seclvl, bitlen, nthreads, mt_alg, 520000000);

The last parameter is the number of gates and controls how much memory to allocate. Try reducing that parameter - say from 520000000 to 5200000 or something - that should make it work.

@rasswanth-s
Copy link
Author

It is resolved.Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants