Skip to content

Commit

Permalink
Merge pull request #2496 from devitocodes/tweak-profiler-3
Browse files Browse the repository at this point in the history
misc: Fix operator output with gflopss=None
  • Loading branch information
FabioLuporini authored Dec 5, 2024
2 parents b8b1103 + f03c176 commit 76b72fe
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 76b72fe

Please sign in to comment.