From f03c17697820d965b2c553e1e7b23fd031746726 Mon Sep 17 00:00:00 2001 From: Fabio Luporini Date: Thu, 5 Dec 2024 08:19:44 +0000 Subject: [PATCH] misc: Fix operator output with gflopss=None --- devito/operator/operator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devito/operator/operator.py b/devito/operator/operator.py index 7531294a49..3c5e2f011c 100644 --- a/devito/operator/operator.py +++ b/devito/operator/operator.py @@ -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: