We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7ab71a commit fb6b5e9Copy full SHA for fb6b5e9
tools/AutoTuner/src/autotuner/distributed.py
@@ -855,8 +855,8 @@ def parse_arguments():
855
"--cpu_budget",
856
type=int,
857
metavar="<int>",
858
- default=None,
859
- help="CPU Hours",
+ default=-1,
+ help="CPU Hours (-1 means no limit.)",
860
)
861
parser.add_argument(
862
"--jobs",
@@ -916,7 +916,7 @@ def parse_arguments():
916
args.timeout = round(args.timeout * 3600)
917
918
# Calculate timeout based on cpu_budget
919
- if args.cpu_budget is not None:
+ if args.cpu_budget != -1:
920
args.timeout = round(args.cpu_budget / os.cpu_count() * 3600)
921
args.timeout_per_trial = round(
922
args.cpu_budget / (args.jobs * args.resources_per_trial) * 3600
0 commit comments