Commit a7ab71a 1 parent 0685085 commit a7ab71a Copy full SHA for a7ab71a
File tree 2 files changed +12
-9
lines changed
2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 66
66
67
67
TEMPLATE = """
68
68
Expected figures for this experiment.
69
- Wall time: {runtime:.2f } hours
69
+ Wall time: {runtime:.5f } hours
70
70
Number of Samples:
71
- Samples per minute: {num_samples_per_minute:.2f }
72
- Design runtime of 10 min: {num_samples_10min:.2f }
73
- Design runtime of 1h: {num_samples_1h:.2f }
71
+ Samples per minute: {num_samples_per_minute:.5f }
72
+ Design runtime of 10 min: {num_samples_10min:.5f }
73
+ Design runtime of 1h: {num_samples_1h:.5f }
74
74
Number of iterations
75
- Design runtime of 10 min: {num_iterations_10min:.2f }
76
- Design runtime of 1h: {num_iterations_1h:.2f }
75
+ Design runtime of 10 min: {num_iterations_10min:.5f }
76
+ Design runtime of 1h: {num_iterations_1h:.5f }
77
77
"""
78
78
79
79
@@ -855,7 +855,7 @@ def parse_arguments():
855
855
"--cpu_budget" ,
856
856
type = int ,
857
857
metavar = "<int>" ,
858
- default = int ( np . floor ( cpu_count () / 2 )) ,
858
+ default = None ,
859
859
help = "CPU Hours" ,
860
860
)
861
861
parser .add_argument (
@@ -1051,6 +1051,8 @@ def sweep():
1051
1051
1052
1052
if __name__ == "__main__" :
1053
1053
args = parse_arguments ()
1054
+ print (args )
1055
+ exit ()
1054
1056
1055
1057
# Read config and original files before handling where to run in case we
1056
1058
# need to upload the files.
Original file line number Diff line number Diff line change @@ -18,14 +18,15 @@ def setUp(self):
18
18
)
19
19
self .experiment = f"smoke-test-timeout-{ self .platform } "
20
20
21
- # 0.01 hour translates to 36 seconds, which will definitely cause failure.
22
- timeout_flags = ["--timeout 0.05 " , "--timeout_per_trial 0.05 " ]
21
+ # 0.001 hour translates to 3.6 seconds, which will definitely cause failure.
22
+ timeout_flags = ["--timeout 0.001 " , "--timeout_per_trial 0.001 " ]
23
23
self .commands = [
24
24
"python3 distributed.py"
25
25
f" --design { self .design } "
26
26
f" --platform { self .platform } "
27
27
f" --experiment { self .experiment } "
28
28
f" --config { self .config } "
29
+ f" --cpu_budget None"
29
30
f" --yes"
30
31
f" { flag } "
31
32
f" tune --samples 1"
You can’t perform that action at this time.
0 commit comments