Repository navigation
compiler: Minor tweaks for improved MPI modes - #3123
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3123 +/- ##
==========================================
+ Coverage 83.40% 83.99% +0.58%
==========================================
Files 260 261 +1
Lines 59671 60001 +330
Branches 5036 5064 +28
==========================================
+ Hits 49769 50397 +628
+ Misses 9022 8760 -262
+ Partials 880 844 -36
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| is_integer = True | ||
| is_nonnegative = True | ||
|
|
||
|
|
There was a problem hiding this comment.
Shouldn't this just be extracted from MPINeighbourhood?
There was a problem hiding this comment.
I simplified everything now, take a new look, but short answer yes
|
|
||
| aligned_m = IntDiv(m, self._alignment) * self._alignment | ||
| # Preserve empty regions when rounding down a start index | ||
| aligned_m = sympy.Piecewise( |
There was a problem hiding this comment.
Why is Piecewise needed here?
There was a problem hiding this comment.
that's a bug fix: empty regions have inverted bounds. For example, rounding the start of [2, 1] down to a multiple of four would turn it into [0, 1], causing two iterations. Piecewise preserves the inverted bounds in that case.
| grid = getattr(args, 'grid', None) | ||
| neighborhood = {} | ||
| if grid is not None: | ||
| distributor = grid.distributor | ||
| shifts = distributor._obj_neighborhood.neighborhood | ||
| neighborhood = {d.root.name: shifts[d] for d in distributor.dimensions} |
There was a problem hiding this comment.
Check this behaves with functions on subdomains
There was a problem hiding this comment.
will do, but practically speaking, when can we have written (Time)Functions-on-subdomain ? water-rock coupling, then?
| row[name] = value | ||
| records.append(row) | ||
|
|
||
| # Keep CORE in slot zero and move empty OWNED records to the end. |
b399882 to
62dbec7
Compare
Rounding down an inclusive lower bound can turn an empty CORE or OWNED region into executable points. Keep the original lower bound when it already exceeds the upper bound.
Bracket the time-stepping region with a native timer and reduce its elapsed time once across MPI ranks. Keep the section-based measurement for Operators without a time loop.
Allow a halo builder to place lifetime hooks and declare backend aggregates in the generated Operator.
Select the fallback from the HaloSpot and enable the full-mode regression. Reuse runtime face ranks from MPINeighborhood, document region packing, and cache Grid index origin symbols.
7c04af7 to
292b778
Compare
| nbytes = i.nbytes if i.is_regular else i.nbytes_max | ||
| v = subs_op_args(nbytes, self) | ||
| try: | ||
| nbytes = i.nbytes if i.is_regular else i.nbytes_max |
Add a guarded example of LocalScatter lowering.
| """ | ||
| Face ranks indexed by root dimension name and side. | ||
| """ | ||
| return {d.root.name: ranks for d, ranks in self.neighborhood.items() |
... Exploited in PRO