We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be852e3 commit bc56a7fCopy full SHA for bc56a7f
1 file changed
tools/AutoTuner/test/fast_smoke_test.py
@@ -54,6 +54,8 @@ def setUp(self):
54
"./files/fast-at-sweep.json",
55
)
56
self.exec = AutoTunerTestUtils.get_exec_cmd()
57
+
58
+ # Tune command
59
self.tune_command = (
60
f"{self.exec}"
61
f" --design {self.design}"
@@ -62,12 +64,18 @@ def setUp(self):
62
64
f" --config {self.tune_config}"
63
65
f" tune --samples 1"
66
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
72
self.sweep_command = (
73
74
75
f" --platform {self.platform}"
76
f" --experiment fast-smke-test-sweep"
77
f" --config {self.sweep_config}"
78
+ f" --jobs {self.jobs}"
79
f" sweep"
80
81
0 commit comments