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