emp-toolkit / emp-sh2pc

Semi-honest Two Party Computation Based on Garbled Circuits.
Other
76 stars 38 forks source link

Is circuit evaluation parallel? #24

Closed bsdinis closed 3 years ago

bsdinis commented 3 years ago

Circuit evaluation seems to be a parallelizable task, but some empirical testing seems to show that emp is not doing this.

Is this possible?

wangxiao1254 commented 3 years ago

they are not by default. You can turn circuit garbling and evaluation to run in threads by turn on https://github.com/emp-toolkit/emp-tool/blob/master/cmake/common.cmake#L69. Then you can do explicit parallelization in threads. However, you really need to have a huge bandwidth for this to make sense.

GGC1 commented 3 years ago

How to compile float.cpp, other cpp files have compiled executable files in the bin folder. Then why does the example file report an error after execution? image