Skip to content

Commit b0e978a

Browse files
committed
Add assert to ensure the loop doesn't get stuck.
1 parent b102caa commit b0e978a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

helion/autotuner/base_search.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,7 @@ def _wait_for_all_step(
952952
) -> list[PrecompileFuture]:
953953
"""Start up to the concurrency cap, wait for progress, and return remaining futures."""
954954
cap = futures[0].search._jobs if futures else 1
955+
assert cap > 0, "autotune_precompile_jobs must be positive"
955956
running = [f for f in futures if f.started and f.ok is None and f.is_alive()]
956957

957958
# Start queued futures up to the cap

0 commit comments

Comments
 (0)