Skip to content

Commit

Permalink
compiler: Drop redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Jun 26, 2024
1 parent 1c0aa52 commit 4d08839
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion devito/ir/clusters/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def callback(self, clusters, prefix, seen=None):

key = lambda i: i in prefix[:-1] or i in hs.loc_indices
ispace = c.ispace.project(key)
# HaloTouch's are not parallel
# HaloTouches are not parallel
properties = c.properties.sequentialize()

halo_touch = c.rebuild(exprs=expr, ispace=ispace, properties=properties)
Expand Down
3 changes: 1 addition & 2 deletions devito/operator/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,14 +990,13 @@ def lower_perfentry(v):

for k, v in summary.items():
rank = "[rank%d]" % k.rank if k.rank is not None else ""
name = "%s%s" % (k.name, rank)

if v.time <= 0.01:
# Trim down the output for very fast sections
name = "%s%s" % (k.name, rank)
perf("%s* %s ran in %.2f s" % (indent, name, fround(v.time)))
continue

name = "%s%s" % (k.name, rank)
metrics = lower_perfentry(v)
perf("%s* %s ran in %.2f s %s" % (indent, name, fround(v.time), metrics))
for n, v1 in summary.subsections.get(k.name, {}).items():
Expand Down

0 comments on commit 4d08839

Please sign in to comment.