Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hexagon][Metaschedule] Add timeout_sec arg to get_hexagon_local_builder #13828

Merged
merged 1 commit into from
Jan 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions python/tvm/contrib/hexagon/meta_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ def _worker_func(hexagon_launcher, evaluator_config, alloc_repeat, artifact_path


def get_hexagon_local_builder(
pass_context: tvm.transform.PassContext = None, max_workers: Optional[int] = None
pass_context: tvm.transform.PassContext = None,
max_workers: Optional[int] = None,
timeout_sec: float = 30.0,
):
"""Return Hexagon-compatible Builder for meta schedule."""

Expand All @@ -146,10 +148,13 @@ def default_build_with_context(

if pass_context is not None:
return LocalBuilder(
f_build=default_build_with_context, f_export=export_func, max_workers=max_workers
f_build=default_build_with_context,
f_export=export_func,
max_workers=max_workers,
timeout_sec=timeout_sec,
)
else:
return LocalBuilder(f_export=export_func, max_workers=max_workers)
return LocalBuilder(f_export=export_func, max_workers=max_workers, timeout_sec=timeout_sec)


def get_hexagon_rpc_runner(
Expand Down