Skip to content

Commit

Permalink
misc: Improve performance summary
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Jun 18, 2024
1 parent 1905fb6 commit 0decbb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/operator/profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def add(self, name, rank, time,

k = PerfKey(name, rank)

if not ops or any(np.isnan(i) for i in [ops, points, traffic]):
if not ops or any(not np.isfinite(i) for i in [ops, points, traffic]):
self[k] = PerfEntry(time, 0.0, 0.0, 0.0, 0, [])
else:
gflops = float(ops)/10**9
Expand Down

0 comments on commit 0decbb2

Please sign in to comment.