Skip to content

Commit

Permalink
repo-sync-2024-07-08T14:01:52+0800
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc committed Jul 8, 2024
1 parent db7b053 commit 9f35708
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libspu/mpc/cheetah/boolean_semi2k.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ NdArrayRef P2B::proc(KernelEvalContext* ctx, const NdArrayRef& in) const {
if (comm->getRank() == 0) {
ring_xor_(x, in);
}

return makeBShare(x, field, getNumBits(in));
auto nbits = getNumBits(in) == 0 ? 1 : getNumBits(in);
return makeBShare(x, field, nbits);
}

NdArrayRef AndBP::proc(KernelEvalContext* ctx, const NdArrayRef& lhs,
Expand Down
3 changes: 2 additions & 1 deletion spu/tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ py_test(

py_test(
name = "jnp_cheetah_r64_test",
size = "enormous",
timeout = "long",
srcs = ["jnp_cheetah_r64_test.py"],
deps = [
Expand All @@ -96,7 +97,7 @@ py_test(

py_test(
name = "jnp_cheetah_r64_test_x64",
timeout = "long",
size = "enormous",
srcs = ["jnp_cheetah_r64_test.py"],
env = {
"ENABLE_X64_TEST": "1",
Expand Down
3 changes: 1 addition & 2 deletions spu/tests/jnp_cheetah_r64_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
from spu.tests.jnp_testbase import JnpTests


@unittest.skip("too slow, last run succeed")
class JnpTestAby3FM64(JnpTests.JnpTestBase):
class JnpTestCheetahFM64(JnpTests.JnpTestBase):
def setUp(self):
self._sim = ppsim.Simulator.simple(
2, spu_pb2.ProtocolKind.CHEETAH, spu_pb2.FieldType.FM64
Expand Down

0 comments on commit 9f35708

Please sign in to comment.