Skip to content

Commit 68564ef

Browse files
committed
at: cast to int memory limit, ulimit does not parse floats
Signed-off-by: Vitor Bandeira <[email protected]>
1 parent 5a2c730 commit 68564ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/AutoTuner/src/autotuner/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ def openroad(
325325

326326
make_command = export_command
327327
if args.memory_limit is not None:
328-
make_command += f"ulimit -v {args.memory_limit * 1_000_000}; "
328+
limit = int(args.memory_limit * 1_000_000)
329+
make_command += f"ulimit -v {limit}; "
329330
make_command += f"make -C {base_dir}/flow DESIGN_CONFIG=designs/"
330331
make_command += f"{args.platform}/{args.design}/config.mk"
331332
make_command += f" PLATFORM={args.platform}"

0 commit comments

Comments
 (0)