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 22e3bd0 commit 2e63e7fCopy full SHA for 2e63e7f
tools/AutoTuner/src/autotuner/distributed.py
@@ -441,8 +441,8 @@ def parse_arguments():
441
"--cpu_budget",
442
type=int,
443
metavar="<int>",
444
- default=None,
445
- help="CPU Hours",
+ default=-1,
+ help="CPU Hours (-1 means no limit.)",
446
)
447
parser.add_argument(
448
"--jobs",
@@ -516,7 +516,7 @@ def parse_arguments():
516
args.timeout = round(args.timeout * 3600)
517
518
# Calculate timeout based on cpu_budget
519
- if args.cpu_budget is not None:
+ if args.cpu_budget != -1:
520
args.timeout = round(args.cpu_budget / os.cpu_count() * 3600)
521
args.timeout_per_trial = round(
522
args.cpu_budget / (args.jobs * args.resources_per_trial) * 3600
0 commit comments