aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--boltzgen/kernel/template/collect_moments.cl.mako5
-rw-r--r--boltzgen/kernel/template/equilibrilize.cl.mako5
2 files changed, 4 insertions, 6 deletions
diff --git a/boltzgen/kernel/template/collect_moments.cl.mako b/boltzgen/kernel/template/collect_moments.cl.mako
index b07b759..ef520da 100644
--- a/boltzgen/kernel/template/collect_moments.cl.mako
+++ b/boltzgen/kernel/template/collect_moments.cl.mako
@@ -1,8 +1,7 @@
__kernel void collect_moments(__global ${float_type}* f,
- __global ${float_type}* moments)
+ __global ${float_type}* moments,
+ unsigned int gid)
{
- const unsigned int gid = ${layout.gid()};
-
__global ${float_type}* preshifted_f = f + gid;
% for i in range(0,descriptor.q):
diff --git a/boltzgen/kernel/template/equilibrilize.cl.mako b/boltzgen/kernel/template/equilibrilize.cl.mako
index aa2246c..0759dd5 100644
--- a/boltzgen/kernel/template/equilibrilize.cl.mako
+++ b/boltzgen/kernel/template/equilibrilize.cl.mako
@@ -1,8 +1,7 @@
__kernel void equilibrilize(__global ${float_type}* f_next,
- __global ${float_type}* f_prev)
+ __global ${float_type}* f_prev,
+ unsigned int gid)
{
- const unsigned int gid = ${layout.gid()};
-
__global ${float_type}* preshifted_f_next = f_next + gid;
__global ${float_type}* preshifted_f_prev = f_prev + gid;