Skip to content

Commit

Permalink
[micro_perf] bug_fix, mkdir reports in launch.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
suisiyuan committed Aug 29, 2024
1 parent 0db9b2c commit 0eb1cb2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions byte_micro_perf/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,14 @@ def parse_task(task_dir):
shell=True
)

# create run log

outputs_dir = pathlib.Path(BYTE_MLPERF_ROOT).joinpath("reports", args.hardware_type)
if not outputs_dir.exists():
outputs_dir.mkdir(parents=True)
with open(f"{BYTE_MLPERF_ROOT}/reports/{args.hardware_type}/_run_report.log", "w") as file:
pass




# terminate task perf process
subprocess_pid = -1
def signal_handler(signum, frame):
Expand Down

0 comments on commit 0eb1cb2

Please sign in to comment.