Skip to content

Commit

Permalink
Merge pull request #2495 from devitocodes/tweak-profiler-2
Browse files Browse the repository at this point in the history
misc: Fix operator output with OI=None
  • Loading branch information
FabioLuporini authored Dec 4, 2024
2 parents 78691c5 + eba86d9 commit b8b1103
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 b8b1103

Please sign in to comment.