File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
tools/AutoTuner/src/autotuner Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 } "
You can’t perform that action at this time.
0 commit comments