Skip to content

Commit

Permalink
Fix issue with threads option in run_designs.py (The-OpenROAD-Proje…
Browse files Browse the repository at this point in the history
  • Loading branch information
donn authored Mar 10, 2022
1 parent a82bf22 commit 5f20beb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions run_designs.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
@click.option("-c", "--config_tag", default="config", help="Configuration file")
@click.option("-r", "--regression", default=None, help="Regression file")
@click.option("-t", "--tag", default="regression", help="Tag for the log file")
@click.option("-j", "--threads", default=1, help="Number of designs in parallel")
@click.option(
"-j", "--threads", default=1, type=int, help="Number of designs in parallel"
)
@click.option(
"-p",
"--configuration_parameters",
Expand Down Expand Up @@ -115,7 +117,7 @@ def cli(
if print_rem_time is not None:
rem_designs = dict.fromkeys(designs, 1)

num_workers = int(threads)
num_workers = threads
config = config_tag

if regression is not None:
Expand Down

0 comments on commit 5f20beb

Please sign in to comment.