aboutsummaryrefslogtreecommitdiff
path: root/boltzgen/kernel/template/equilibrilize.cl.mako
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-10-29 10:56:41 +0100
committerAdrian Kummerlaender2019-10-29 10:56:41 +0100
commitdbd9a340a7809a770d52d10154712278431acdc3 (patch)
treeda5bd5d706ebd0607b55062d87ac6f6ebb5e3bf6 /boltzgen/kernel/template/equilibrilize.cl.mako
parent15c0cba693646269c04f245ca52f405ddfdb4a07 (diff)
downloadboltzgen-dbd9a340a7809a770d52d10154712278431acdc3.tar
boltzgen-dbd9a340a7809a770d52d10154712278431acdc3.tar.gz
boltzgen-dbd9a340a7809a770d52d10154712278431acdc3.tar.bz2
boltzgen-dbd9a340a7809a770d52d10154712278431acdc3.tar.xz
boltzgen-dbd9a340a7809a770d52d10154712278431acdc3.zip
Unify AOS, SOA specific cell preshift between targets
SOA and AOS should not be target specific, neighbor offset calculation / bijection between gid and cell coordinates should be customizable.
Diffstat (limited to 'boltzgen/kernel/template/equilibrilize.cl.mako')
-rw-r--r--boltzgen/kernel/template/equilibrilize.cl.mako4
1 files changed, 2 insertions, 2 deletions
diff --git a/boltzgen/kernel/template/equilibrilize.cl.mako b/boltzgen/kernel/template/equilibrilize.cl.mako
index 4b9b984..4ee8d41 100644
--- a/boltzgen/kernel/template/equilibrilize.cl.mako
+++ b/boltzgen/kernel/template/equilibrilize.cl.mako
@@ -2,8 +2,8 @@ __kernel void equilibrilize_gid(__global ${float_type}* f_next,
__global ${float_type}* f_prev,
unsigned int gid)
{
- __global ${float_type}* preshifted_f_next = f_next + gid;
- __global ${float_type}* preshifted_f_prev = f_prev + gid;
+ __global ${float_type}* preshifted_f_next = f_next + ${layout.cell_preshift('gid')};
+ __global ${float_type}* preshifted_f_prev = f_prev + ${layout.cell_preshift('gid')};
% for i, w_i in enumerate(descriptor.w):
preshifted_f_next[${layout.pop_offset(i)}] = ${w_i}.f;