Skip to content

Commit

Permalink
[Test] Fix flaky LocalRunner test due to a small timeout (apache#9181)
Browse files Browse the repository at this point in the history
  • Loading branch information
junrushao authored and ylc committed Jan 7, 2022
1 parent e19fa8b commit 95fa570
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/tvm/meta_schedule/runner/local_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def default_cleanup() -> None:

def __init__(
self,
timeout_sec: float,
timeout_sec: float = 30,
evaluator_config: Optional[EvaluatorConfig] = None,
cooldown_sec: float = 0.0,
alloc_repeat: int = 1,
Expand Down
3 changes: 1 addition & 2 deletions tests/python/unittest/test_meta_schedule_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def exception_session_creator( # pylint: disable=unused-variable


def test_meta_schedule_local_runner_exception():
"""Test meta schedule Local Runner time out"""
"""Test meta schedule Local Runner exception"""
mod = MatmulModule
builder = LocalBuilder()
(builder_result,) = builder.build([BuilderInput(mod, Target("llvm"))])
Expand Down Expand Up @@ -541,7 +541,6 @@ def timeout_session_creator( # pylint: disable=unused-variable
)

runner = LocalRunner(
timeout_sec=1,
evaluator_config=evaluator_config,
initializer=initializer,
f_alloc_argument="meta_schedule.runner.test_exception",
Expand Down

0 comments on commit 95fa570

Please sign in to comment.