Skip to content

Commit bab84c6

Browse files
committed
consistent file names and fix smoke_test_sweep
Signed-off-by: Jack Luar <[email protected]>
1 parent e8be123 commit bab84c6

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

tools/AutoTuner/src/autotuner/distributed.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -404,19 +404,12 @@ def parse_arguments():
404404
)
405405

406406
# Workload
407-
# parser.add_argument(
408-
# "--jobs",
409-
# type=int,
410-
# metavar="<int>",
411-
# default=int(np.floor(cpu_count() / 2)),
412-
# help="Max number of concurrent jobs.",
413-
# )
414407
parser.add_argument(
415408
"--cpu_budget",
416409
type=int,
417410
metavar="<int>",
418411
default=int(np.floor(cpu_count() / 2)),
419-
help="Number of cpus to be used per hour.",
412+
help="Number of cpus to be used.",
420413
)
421414
parser.add_argument(
422415
"--openroad_threads",

tools/AutoTuner/test/smoke_test_sweep.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,17 @@ def setUp(self):
2828

2929
# limit jobs because ray.get() does not terminate if jobs > number of samples
3030
core = os.cpu_count()
31-
self.jobs = 4 if core >= 4 else core
31+
self.resources_per_trial = 1
32+
self.cpu_budget = 4 if core >= 4 else core
3233
self.experiment = f"smoke-test-sweep-{self.platform}"
3334
self.command = (
3435
"python3 -m autotuner.distributed"
3536
f" --design {self.design}"
3637
f" --platform {self.platform}"
3738
f" --experiment {self.experiment}"
3839
f" --config {self.config}"
39-
f" --jobs {self.jobs}"
40+
f" --cpu_budget {self.cpu_budget}"
41+
f" --resources_per_trial {self.resources_per_trial}"
4042
f" sweep"
4143
)
4244

tools/AutoTuner/test/test_timeout.py renamed to tools/AutoTuner/test/smoke_test_timeout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def setUp(self):
1616
cur_dir,
1717
f"../../../flow/designs/{self.platform}/{self.design}/autotuner.json",
1818
)
19-
self.experiment = f"smoke-test-tune-{self.platform}"
19+
self.experiment = f"smoke-test-timeout-{self.platform}"
2020

2121
# 0.01 hour translates to 36 seconds, which will definitely cause failure.
2222
timeout_flags = ["--timeout 0.05", "--timeout_per_trial 0.05"]

0 commit comments

Comments
 (0)