aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-11-09 23:46:14 +0100
committerAdrian Kummerlaender2019-11-09 23:46:14 +0100
commitd136bb30bc8a9393372ec905aea500a0b61000e3 (patch)
tree40c97e7181e9c034e8cbc4057a9c271da746b0d6
parent27ce855378a80dff680c2989800af1f4e69975fe (diff)
downloadboltzgen-d136bb30bc8a9393372ec905aea500a0b61000e3.tar
boltzgen-d136bb30bc8a9393372ec905aea500a0b61000e3.tar.gz
boltzgen-d136bb30bc8a9393372ec905aea500a0b61000e3.tar.bz2
boltzgen-d136bb30bc8a9393372ec905aea500a0b61000e3.tar.xz
boltzgen-d136bb30bc8a9393372ec905aea500a0b61000e3.zip
Add support for population padding to SOA layout
-rw-r--r--boltzgen/kernel/memory/layout/SOA.py4
1 files 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)