Skip to content

Commit

Permalink
Default to using self.cancellation_manager
Browse files Browse the repository at this point in the history
Part of google#96
  • Loading branch information
Northbadge committed Aug 19, 2022
1 parent 390faa2 commit 13c223b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler_opt/rl/inlining/inlining_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def compile_fn(
cancelled work.
RuntimeError: if llvm-size produces unexpected output.
"""
if cancellation_manager is None:
cancellation_manager = self._cancellation_manager

working_dir = tempfile.mkdtemp()

log_path = os.path.join(working_dir, 'log')
Expand Down
3 changes: 3 additions & 0 deletions compiler_opt/rl/regalloc/regalloc_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def compile_fn(
cancelled work.
RuntimeError: if llvm-size produces unexpected output.
"""
if cancellation_manager is None:
cancellation_manager = self._cancellation_manager

working_dir = tempfile.mkdtemp()

log_path = os.path.join(working_dir, 'log')
Expand Down

0 comments on commit 13c223b

Please sign in to comment.