Skip to content

Commit

Permalink
repo-sync-2024-06-14T10:51:24+0800
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc committed Jun 14, 2024
1 parent 51cadc0 commit 6a7176f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libspu/core/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ Ret dynDispatch(SPUContext* sctx, const std::string& name, Args&&... args) {
kernel->evaluate(&ectx);

// 4. steal the result and return it.
return ectx.consumeOutput<Ret>(0);
if (ectx.numOutputs() > 0) {
return ectx.consumeOutput<Ret>(0);
}
return Ret();
}

// helper class
Expand Down
2 changes: 2 additions & 0 deletions libspu/mpc/semi2k/arithmetic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ void BeaverCacheKernel::evaluate(KernelEvalContext* ctx) const {
beaver_cache->DisableCache(v.imag().value());
}
}
// dummy output
ctx->pushOutput(Value());
}

} // namespace spu::mpc::semi2k

0 comments on commit 6a7176f

Please sign in to comment.