From 8dc0d6e4856e2a3dbabc7a6b3b6d2242cec48f2a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 20 Jul 2012 22:07:20 +1000 Subject: [PATCH] Constify input variable in scrypt kernel. --- scrypt120713.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrypt120713.cl b/scrypt120713.cl index 69e2db8a..695eaf3d 100644 --- a/scrypt120713.cl +++ b/scrypt120713.cl @@ -689,7 +689,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup) #define NFLAG (0x7F) __attribute__((reqd_work_group_size(WORKSIZE, 1, 1))) -__kernel void search(__global uint4*restrict input, __global uint*restrict output, __global uint4*restrict padcache, uint4 pad0, uint4 pad1) +__kernel void search(__global const uint4 * restrict input, __global uint*restrict output, __global uint4*restrict padcache, uint4 pad0, uint4 pad1) { uint gid = get_global_id(0); uint4 X[8];