data61 / MP-SPDZ

Versatile framework for multi-party computation
Other
952 stars 279 forks source link

Assertion `reg.size() % 4 == 0' failed #1335

Closed DuanYuFi closed 8 months ago

DuanYuFi commented 8 months ago

Hi @mkskeller, I am running the ResNet inference example by using the replicated-ring-party protocol. It works well when I compile the network with trunc_pr, split parameter. But when I use split only, it reports:

Using statistical security parameter 40
Trying to run 64-bit computation
Starting timer 1 at 0 (0 MB, 0 rounds) after 2.5725e-05
replicated-ring-party.x: ./Processor/Processor.hpp:482: void SubProcessor<T>::muls(const std::vector<int>&) [with T = Rep3Share2<64>]: Assertion `reg.size() % 4 == 0' failed.
replicated-ring-party.x: ./Processor/Processor.hpp:482: void SubProcessor<T>::muls(const std::vector<int>&) [with T = Rep3Share2<64>]: Assertion `reg.size() % 4 == 0' failed.
Aborted (core dumped)

Why did this happen? Thanks.

DuanYuFi commented 8 months ago

Sorry, it seems it has been some time since I upgraded the codes. The error is because I am running the old compiled circuit and running it on the latest version of the VM. Thanks.