From 15c889fddfd5530a8055fdb39e106ff6f2d5e7ca Mon Sep 17 00:00:00 2001 From: mloubout Date: Thu, 19 Feb 2026 13:51:20 -0500 Subject: [PATCH] compiler: prevent padding non inner-most dim --- devito/types/basic.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devito/types/basic.py b/devito/types/basic.py index 29be2acf09..871077a253 100644 --- a/devito/types/basic.py +++ b/devito/types/basic.py @@ -916,6 +916,10 @@ def __padding_setup_smart__(self, **kwargs): return nopadding d = self.space_dimensions[-1] + # Last space Dimension is not the most inner Dimension + if d != self.dimensions[-1]: + return nopadding + mmts = configuration['platform'].max_mem_trans_size(self.__padding_dtype__) remainder = self._size_nopad[d] % mmts if remainder == 0: