Skip to content

Commit aab2e1d

Browse files
committed
profiling: prevent nan section to polute gflopss
1 parent cda3e7e commit aab2e1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devito/operator/profiling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def add_glb_vanilla(self, key, time):
453453
if not self.input:
454454
return
455455

456-
ops = sum(v.ops for v in self.input.values())
456+
ops = sum(v.ops for v in self.input.values() if not np.isnan(v.ops))
457457
traffic = sum(v.traffic for v in self.input.values())
458458

459459
gflops = float(ops)/10**9

0 commit comments

Comments
 (0)