Skip to content

Commit

Permalink
misc: Fix operator output with OI=None
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Dec 4, 2024
1 parent 78691c5 commit eba86d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devito/operator/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,8 @@ def _emit_apply_profiling(self, args):

v = summary.globals.get('vanilla')
if v is not None:
metrics.append("OI=%.2f" % fround(v.oi))
if v.oi is not None:
metrics.append("OI=%.2f" % fround(v.oi))
metrics.append("%.2f GFlops/s" % fround(v.gflopss))

v = summary.globals.get('fdlike')
Expand Down

0 comments on commit eba86d9

Please sign in to comment.