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

[tuner] Add timeout for compilation in TuningClient #798

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

Max191
Copy link
Contributor

@Max191 Max191 commented Jan 9, 2025

This PR adds a timeout for compilation to prevent the tuner from hanging when iree-compile hangs. The iree.compiler.compile_file binding is no longer used, since it does not support a timeout. Instead, the command is run as a regular subprocess.

@Max191 Max191 requested review from kuhar and bangtianliu January 9, 2025 14:36
tuner/tuner/libtuner.py Outdated Show resolved Hide resolved
tuner/tuner/libtuner.py Outdated Show resolved Hide resolved
tuner/tuner/libtuner.py Outdated Show resolved Hide resolved
tuner/examples/simple/simple_tuner.py Show resolved Hide resolved
@Max191 Max191 requested a review from kuhar January 9, 2025 16:46
@Max191 Max191 force-pushed the tuner-add-compile-timeout branch from 608a1ec to 5bfa62d Compare January 9, 2025 16:49
@kuhar kuhar enabled auto-merge (squash) January 9, 2025 16:55
@kuhar kuhar merged commit 1e23a74 into nod-ai:main Jan 9, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants