Skip to content

Commit

Permalink
hacky fix for row major dmp.grid
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLydike committed Aug 3, 2023
1 parent e4db7f9 commit ea7fe19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion devito/operator/xdsl_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ def _make_interop_o(self):
@property
def mpi_shape(self) -> tuple:
dist = self.functions[0].grid.distributor
return dist.topology, dist.myrank
# 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

def _jit_compile(self):
"""
Expand Down

0 comments on commit ea7fe19

Please sign in to comment.