Skip to content

Commit

Permalink
Parsed output area&energy dicts now have all components even if zero …
Browse files Browse the repository at this point in the history
…energy
  • Loading branch information
tanner-andrulis committed May 31, 2024
1 parent 13db4df commit 3a4eb5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions timeloopfe/v4/output_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@ def parse_timeloop_output(
cycles, computes, percent_utilization, energy = parse_stats_file(stats_path)
area = get_area_from_art(art_path)

for k in list(area.keys()) + list(energy.keys()):
area.setdefault(k, 0)
energy.setdefault(k, 0)

spec.parse_expressions()
mapping = None
if os.path.exists(stats_path.replace(".stats.txt", ".map.txt")):
Expand Down

0 comments on commit 3a4eb5a

Please sign in to comment.