Skip to content

Commit

Permalink
fix row->column major conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLydike authored and PapyChacal committed Oct 21, 2023
1 parent 674081e commit 2079b9c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions devito/operator/xdsl_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,8 @@ def _make_interop_o(self):
@property
def mpi_shape(self) -> tuple:
dist = self.functions[0].grid.distributor
# temporary fix:
# swap dim 0 and 1 in topology because dmp.grid is row major and not column major

return (dist.topology[1], dist.topology[0], *dist.topology[2:]), dist.myrank
# reverse topology for row->column major
return tuple(reversed(dist.topology)), dist.myrank

def _jit_compile(self):
"""
Expand Down

0 comments on commit 2079b9c

Please sign in to comment.