Skip to content

Commit

Permalink
[llvm] Fix orphaned subprocess.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCummins committed Oct 7, 2021
1 parent 380c542 commit 4c0d5c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler_gym/envs/llvm/datasets/llvm_stress.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def benchmark_from_seed(self, seed: int) -> Benchmark:
)

stdout, _ = llvm_as.communicate(timeout=60)
llvm_stress.communicate(timeout=60)
if llvm_stress.returncode or llvm_as.returncode:
raise BenchmarkInitError("Failed to generate benchmark")

Expand Down

0 comments on commit 4c0d5c9

Please sign in to comment.