Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Butygin <[email protected]>
  • Loading branch information
Hardcode84 committed Dec 13, 2024
1 parent 8096c00 commit ebc543f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iree/turbine/kernel/wave/scheduling/modulo_scheduling.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ def schedule_graph(self) -> tuple[dict[fx.Node, int], bool]:
break
else:
raise Exception("Failed to schedule the graph.")
pool.close()
pool.join()

if pool is not None:
pool.close()
pool.join()

self._initiation_interval = T
return self.schedule, success
Expand Down

0 comments on commit ebc543f

Please sign in to comment.