Skip to content

Commit 382d095

Browse files
committed
fix --yaml flag
Signed-off-by: Jack Luar <[email protected]>
1 parent b1a8b52 commit 382d095

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

docs/user/CLIGuideAutotuner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ tune:
5252
and run:
5353
5454
```bash
55-
openroad_autotuner --yaml test.yaml
55+
openroad_autotuner --yaml test.yaml tune
5656
```
5757

5858
## How to generate new config files

tools/AutoTuner/src/autotuner/distributed.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,11 @@ def parse_arguments():
300300
default=None,
301301
help="Time limit (in hours) for each trial run. Default is no limit.",
302302
)
303+
parser.add_argument(
304+
"--yaml",
305+
action=jsonargparse.ActionConfigFile,
306+
help="Path to Overall YAML config file.",
307+
)
303308

304309
# Sweep-specific
305310
sweep_parser.add_argument(
@@ -449,6 +454,9 @@ def parse_arguments():
449454
if args.timeout is not None:
450455
args.timeout = round(args.timeout * 3600)
451456

457+
print(args)
458+
exit(1)
459+
452460
return args
453461

454462

tools/AutoTuner/src/autotuner/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def read_metrics(file_name):
410410
return ret
411411

412412

413-
def read_config(file_name, mode, algorithm = None):
413+
def read_config(file_name, mode, algorithm=None):
414414
"""
415415
Please consider inclusive, exclusive
416416
Most type uses [min, max)

0 commit comments

Comments
 (0)