From d136bb30bc8a9393372ec905aea500a0b61000e3 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 9 Nov 2019 23:46:14 +0100 Subject: Add support for population padding to SOA layout --- boltzgen/kernel/memory/layout/SOA.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boltzgen/kernel/memory/layout/SOA.py b/boltzgen/kernel/memory/layout/SOA.py index 05e9e84..adb5200 100644 --- a/boltzgen/kernel/memory/layout/SOA.py +++ b/boltzgen/kernel/memory/layout/SOA.py @@ -7,8 +7,8 @@ class SOA: def cell_preshift(self, gid): return gid - def pop_offset(self, i): - return i * self.geometry.volume + def pop_offset(self, i, padding = 0): + return i * (self.geometry.volume + padding) def neighbor_offset(self, c_i): return self.index.neighbor(c_i) -- cgit v1.2.3