@@ -123,8 +123,6 @@ xt::xarray<T> evalSinglePermuteOp(SPUContext* ctx, VisType x_vis,
123123 PtBufferView perm,
124124 const PermuteFunc& perm_func,
125125 int64_t perm_dim = 0 ) {
126- const auto prot = ctx->config ().protocol ;
127-
128126 auto x_v = makeTestValue (ctx, x, x_vis);
129127 auto perm_v = makeTestValue (ctx, perm, perm_vis);
130128
@@ -139,9 +137,7 @@ xt::xarray<T> evalSinglePermuteOp(SPUContext* ctx, VisType x_vis,
139137 EXPECT_EQ (send_round, 0 );
140138 }
141139
142- // costs of cheetah is highly dependant of OT kind, so we skip it.
143- if (prot != CHEETAH && ctx->hasKernel (" inv_perm_av" ) &&
144- checkSpPass (x_vis, perm_vis)) {
140+ if (ctx->hasKernel (" inv_perm_av" ) && checkSpPass (x_vis, perm_vis)) {
145141 auto n_repeat = x_v.shape ().numel () / x_v.shape ().dim (perm_dim);
146142 // For ss version, at least 3 rounds.
147143 EXPECT_LE (std::min (send_round, recv_round), 2 * n_repeat);
@@ -194,11 +190,10 @@ std::vector<PermuteParams> GetValidParamsCombinations() {
194190
195191 for (const auto & vis_x : kVisTypes ) {
196192 for (const auto & vis_perm : kVisTypes ) {
197- for (const auto & protocol : {CHEETAH, SEMI2K, ABY3}) {
193+ for (const auto & protocol : {SEMI2K, ABY3}) {
198194 for (const auto & npc : {2 , 3 }) {
199- // npc=2/3 is not valid in ABY3/CHEETAH
200- if ((protocol == ABY3 && npc == 2 ) ||
201- (protocol == CHEETAH && npc == 3 )) {
195+ // npc=2 is not valid in ABY3
196+ if (protocol == ABY3 && npc == 2 ) {
202197 continue ; // Skip invalid combinations
203198 }
204199 valid_combinations.emplace_back (vis_x, vis_perm, protocol, npc);
@@ -327,17 +322,14 @@ TEST_P(PermuteTest, MultiplePermuteWork) {
327322class PermuteEmptyTest : public ::testing::TestWithParam<ProtocolKind> {};
328323
329324INSTANTIATE_TEST_SUITE_P (
330- PermuteEmpty, PermuteEmptyTest, testing::Values(CHEETAH, SEMI2K, ABY3),
325+ PermuteEmpty, PermuteEmptyTest, testing::Values(SEMI2K, ABY3),
331326 [](const testing::TestParamInfo<PermuteEmptyTest::ParamType>& p) {
332327 return fmt::format (" {}" , p.param );
333328 });
334329
335330TEST_P (PermuteEmptyTest, Empty) {
336331 ProtocolKind prot = GetParam ();
337332 size_t npc = 3 ;
338- if (prot == CHEETAH) {
339- npc = 2 ;
340- }
341333
342334 mpc::utils::simulate (
343335 npc, [&](const std::shared_ptr<yacl::link::Context>& lctx) {
0 commit comments