diff --git a/devito/operator/operator.py b/devito/operator/operator.py index 3c5e2f011c..90e827de84 100644 --- a/devito/operator/operator.py +++ b/devito/operator/operator.py @@ -7,6 +7,7 @@ from tempfile import gettempdir from sympy import sympify +import numpy as np from devito.arch import ANYCPU, Device, compiler_registry, platform_registry from devito.data import default_allocator @@ -965,7 +966,7 @@ def _emit_apply_profiling(self, args): if v is not None: if v.oi is not None: metrics.append("OI=%.2f" % fround(v.oi)) - if v.gflopss is not None: + if v.gflopss is not None and np.isfinite(v.gflopss): metrics.append("%.2f GFlops/s" % fround(v.gflopss)) v = summary.globals.get('fdlike')