File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ def setUp(self):
5454 "./files/fast-at-sweep.json" ,
5555 )
5656 self .exec = AutoTunerTestUtils .get_exec_cmd ()
57+
58+ # Tune command
5759 self .tune_command = (
5860 f"{ self .exec } "
5961 f" --design { self .design } "
@@ -62,12 +64,18 @@ def setUp(self):
6264 f" --config { self .tune_config } "
6365 f" tune --samples 1"
6466 )
67+
68+ # Sweep command
69+ # limit jobs because ray.get() does not terminate if jobs > number of samples
70+ core = os .cpu_count ()
71+ self .jobs = 4 if core >= 4 else core
6572 self .sweep_command = (
6673 f"{ self .exec } "
6774 f" --design { self .design } "
6875 f" --platform { self .platform } "
6976 f" --experiment fast-smke-test-sweep"
7077 f" --config { self .sweep_config } "
78+ f" --jobs { self .jobs } "
7179 f" sweep"
7280 )
7381
You can’t perform that action at this time.
0 commit comments