Skip to content

Commit

Permalink
misc: Fix operator output with gflopss=None
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Dec 5, 2024
1 parent b8b1103 commit f03c176
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 @@ -965,7 +965,8 @@ def _emit_apply_profiling(self, args):
if v is not None:
if v.oi is not None:
metrics.append("OI=%.2f" % fround(v.oi))
metrics.append("%.2f GFlops/s" % fround(v.gflopss))
if v.gflopss is not None:
metrics.append("%.2f GFlops/s" % fround(v.gflopss))

v = summary.globals.get('fdlike')
if v is not None:
Expand Down

0 comments on commit f03c176

Please sign in to comment.