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 1b6cd88 commit c26228d
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 c26228d

Please sign in to comment.