Skip to content

Commit 52b1f22

Browse files
committed
at: memory limit disabled by default
Signed-off-by: Vitor Bandeira <[email protected]>
1 parent 34d8dd9 commit 52b1f22

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tools/AutoTuner/src/autotuner/distributed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def parse_arguments():
384384
"--memory_limit",
385385
type=float,
386386
metavar="<float>",
387-
default=1,
387+
default=None,
388388
help="Maximum memory in GB that each trial job can use, process will be killed and not retried if it exceeds.",
389389
)
390390

tools/AutoTuner/src/autotuner/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ def openroad(
324324
export_command += " && "
325325

326326
make_command = export_command
327-
make_command += f"ulimit -v {args.memory_limit * 1_000_000}; make -C {base_dir}/flow DESIGN_CONFIG=designs/"
327+
if args.memory_limit is not None:
328+
make_command += f"ulimit -m {args.memory_limit * 1_000_000}; "
329+
make_command += f"make -C {base_dir}/flow DESIGN_CONFIG=designs/"
328330
make_command += f"{args.platform}/{args.design}/config.mk"
329331
make_command += f" PLATFORM={args.platform}"
330332
make_command += f" FLOW_VARIANT={flow_variant} {parameters}"

0 commit comments

Comments
 (0)