aboutsummaryrefslogtreecommitdiff
path: root/template/particles.mako
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-10-06 14:03:02 +0200
committerAdrian Kummerlaender2019-10-06 14:03:02 +0200
commit72286b36e8ce478af9f62507b5aea762db4ea46b (patch)
treef8c9185facb2707e32c591446b19d50e4c39b515 /template/particles.mako
parent95142dbc573d2792f021eb0eb7ae1c7cb96641b0 (diff)
downloadsymlbm_playground-72286b36e8ce478af9f62507b5aea762db4ea46b.tar
symlbm_playground-72286b36e8ce478af9f62507b5aea762db4ea46b.tar.gz
symlbm_playground-72286b36e8ce478af9f62507b5aea762db4ea46b.tar.bz2
symlbm_playground-72286b36e8ce478af9f62507b5aea762db4ea46b.tar.lz
symlbm_playground-72286b36e8ce478af9f62507b5aea762db4ea46b.tar.xz
symlbm_playground-72286b36e8ce478af9f62507b5aea762db4ea46b.tar.zst
symlbm_playground-72286b36e8ce478af9f62507b5aea762db4ea46b.zip
Use OpenCL access qualifiers only for image objects
It seems I was overeager in adding those qualifiers to non-image buffers as they are only defined by the standard in relation to image objects. Adding the qualifiers to normal buffers causes no observable performance difference on Nvidia targets and fails compilation when targeting AMD or Intel.
Diffstat (limited to 'template/particles.mako')
-rw-r--r--template/particles.mako8
1 files changed, 4 insertions, 4 deletions
diff --git a/template/particles.mako b/template/particles.mako
index cee3f4b..48191d9 100644
--- a/template/particles.mako
+++ b/template/particles.mako
@@ -1,7 +1,7 @@
-__kernel void update_particles(__global __read_only float4* moments,
- __global __read_only int* material,
- __global __write_only float4* particles,
- __global __read_only float4* init_particles,
+__kernel void update_particles(__global float4* moments,
+ __global int* material,
+ __global float4* particles,
+ __global float4* init_particles,
float aging)
{
const unsigned int pid = get_global_id(0);