Skip to content

Commit ffc1361

Browse files
committed
compiler: prevent padding non inner-most dim
1 parent df444ea commit ffc1361

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

devito/types/basic.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,10 @@ def __padding_setup_smart__(self, **kwargs):
914914
return nopadding
915915
d = self.space_dimensions[-1]
916916

917+
# Last space Dimension is not the most inner Dimension
918+
if d != self.dimensions[-1]:
919+
return nopadding
920+
917921
mmts = configuration['platform'].max_mem_trans_size(self.__padding_dtype__)
918922
remainder = self._size_nopad[d] % mmts
919923
if remainder == 0:

0 commit comments

Comments
 (0)