aboutsummaryrefslogtreecommitdiff
path: root/boltzgen/kernel/template/equilibrilize.cl.mako
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-10-27 19:50:21 +0100
committerAdrian Kummerlaender2019-10-27 19:50:21 +0100
commita99edaaa0e9a95354f68614cd2f4ab801179b946 (patch)
treea412c83652838fc09e154e25ea93bdf5df08bbc9 /boltzgen/kernel/template/equilibrilize.cl.mako
parentdcd162aef328cde66082a3333740ec6f58298a4c (diff)
downloadboltzgen-a99edaaa0e9a95354f68614cd2f4ab801179b946.tar
boltzgen-a99edaaa0e9a95354f68614cd2f4ab801179b946.tar.gz
boltzgen-a99edaaa0e9a95354f68614cd2f4ab801179b946.tar.bz2
boltzgen-a99edaaa0e9a95354f68614cd2f4ab801179b946.tar.xz
boltzgen-a99edaaa0e9a95354f68614cd2f4ab801179b946.zip
Accept cell id as parameter in OpenCL functions
It is more flexible to place OpenCL thread ID dependent dispatching in a separate function.
Diffstat (limited to 'boltzgen/kernel/template/equilibrilize.cl.mako')
-rw-r--r--boltzgen/kernel/template/equilibrilize.cl.mako5
1 files changed, 2 insertions, 3 deletions
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;