Skip to content

Commit

Permalink
compiler: prioritize smaller perfect loop over atomics
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Oct 10, 2023
1 parent 27a0145 commit 52d441c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/passes/iet/parpragma.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,10 @@ def _score_candidate(self, n0, root, collapsable=()):
return (
int(n_fp_iters == n), # Fully-parallel nest
n_fp_iters_large,
n_fp_iters,
n_pia_iters_large,
n_pia_iters,
-(n0 + 1), # The outer, the better
n_fp_iters,
n,
)

Expand Down

0 comments on commit 52d441c

Please sign in to comment.