@@ -292,21 +292,23 @@ def openroad(
292292 base_dir ,
293293 parameters ,
294294 flow_variant ,
295- path = "" ,
296295 install_path = None ,
297296):
298297 """
299298 Run OpenROAD-flow-scripts with a given set of parameters.
300299 """
301300 # Make sure path ends in a slash, i.e., is a folder
302301 flow_variant = f"{ args .experiment } /{ flow_variant } "
303- if path != "" :
304- log_path = f"{ path } /{ flow_variant } /"
305- report_path = log_path .replace ("logs" , "reports" )
306- run_command (args , f"mkdir -p { log_path } " )
307- run_command (args , f"mkdir -p { report_path } " )
308- else :
309- log_path = report_path = os .getcwd () + "/"
302+ log_path = os .path .abspath (
303+ os .path .join (base_dir , f"flow/logs/{ args .platform } /{ args .design } " , flow_variant )
304+ )
305+ report_path = os .path .abspath (
306+ os .path .join (
307+ base_dir , f"flow/reports/{ args .platform } /{ args .design } " , flow_variant
308+ )
309+ )
310+ os .makedirs (log_path , exist_ok = True )
311+ os .makedirs (report_path , exist_ok = True )
310312
311313 if install_path is None :
312314 install_path = os .path .join (base_dir , "tools/install" )
@@ -326,8 +328,8 @@ def openroad(
326328 args ,
327329 make_command ,
328330 timeout = args .timeout ,
329- stderr_file = f" { log_path } error-make-finish.log" ,
330- stdout_file = f" { log_path } make-finish-stdout.log" ,
331+ stderr_file = os . path . join ( log_path , " error-make-finish.log") ,
332+ stdout_file = os . path . join ( log_path , " make-finish-stdout.log") ,
331333 )
332334
333335 metrics_file = os .path .abspath (os .path .join (report_path , "metrics.json" ))
@@ -340,8 +342,8 @@ def openroad(
340342 run_command (
341343 args ,
342344 metrics_command ,
343- stderr_file = f" { log_path } error-metrics.log" ,
344- stdout_file = f" { log_path } metrics-stdout.log" ,
345+ stderr_file = os . path . join ( log_path , " error-metrics.log") ,
346+ stdout_file = os . path . join ( log_path , " metrics-stdout.log") ,
345347 )
346348
347349 return metrics_file
@@ -662,7 +664,6 @@ def openroad_distributed(
662664 args ,
663665 repo_dir ,
664666 config ,
665- path ,
666667 sdc_original ,
667668 fr_original ,
668669 install_path ,
@@ -686,7 +687,6 @@ def openroad_distributed(
686687 base_dir = repo_dir ,
687688 parameters = config ,
688689 flow_variant = f"{ uuid ()} -{ variant } " ,
689- path = path ,
690690 install_path = install_path ,
691691 )
692692 duration = time () - t
0 commit comments