[clinfo] 74/148: write_only and read_only are only for images
Andreas Beckmann
anbe at moszumanska.debian.org
Mon Nov 17 14:09:48 UTC 2014
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch clinfo
in repository clinfo.
commit 7f9398e0ed0aa571b78ec68728c5470ffdd914c0
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date: Sun Sep 28 06:12:56 2014 +0200
write_only and read_only are only for images
---
src/clinfo.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/clinfo.c b/src/clinfo.c
index ed049c7..ad9c4fc 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -37,8 +37,8 @@ static const char* local_mem_type_str[] = { none, "Local", "Global" };
static const char* cache_type_str[] = { none, "Read-Only", "Read/Write" };
static const char* sources[] = {
- "#define GWO(type) global write_only type* restrict\n",
- "#define GRO(type) global read_only type* restrict\n",
+ "#define GWO(type) global type* restrict\n",
+ "#define GRO(type) global const type* restrict\n",
"#define BODY int i = get_global_id(0); out[i] = in1[i] + in2[i]\n",
"#define _KRN(T, N) void kernel sum##N(GWO(T##N) out, GRO(T##N) in1, GRO(T##N) in2) { BODY; }\n",
"#define KRN(N) _KRN(float, N)\n",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/clinfo.git
More information about the Pkg-opencl-commits
mailing list