From c79bcfaa883c60d0b18017bd463f37a410ddfe76 Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Mon, 12 Dec 2022 08:06:06 +0000 Subject: [PATCH] test(mgb): fix ci GitOrigin-RevId: 45fb9bcf7e21f7c70cdd886f72eb71b2b21bcaf7 --- src/opr/test/loop/basic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opr/test/loop/basic.cpp b/src/opr/test/loop/basic.cpp index 31977deb2..dda7f0b90 100644 --- a/src/opr/test/loop/basic.cpp +++ b/src/opr/test/loop/basic.cpp @@ -1639,7 +1639,7 @@ TEST(TestOprLoop, VisitInpSubMavi) { TEST(TestOprLoop, AsyncDispatch) { constexpr int LOOP_TIME = 5; - constexpr double SLEEP_TIME = 0.03; + constexpr double SLEEP_TIME = 1.0; HostTensorGenerator<> gen; auto host_x = gen({128}); auto graph = ComputingGraph::make(); @@ -1667,7 +1667,7 @@ TEST(TestOprLoop, AsyncDispatch) { ASSERT_EQ(time_loop_finish, -1.); func->execute(); EXPECT_GE(time_loop_finish, 0); - EXPECT_LT(time_loop_finish, SLEEP_TIME); + EXPECT_LT(time_loop_finish, SLEEP_TIME / 2); // sleep kernel in cuda is easily affected by the frequency change of GPU, // so we just print warn log instead assert. more refer to -- GitLab