Browse Source

Constify input variable in scrypt kernel.

Con Kolivas 13 years ago
parent
commit
8dc0d6e485
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scrypt120713.cl

+ 1 - 1
scrypt120713.cl

@@ -689,7 +689,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
 #define NFLAG (0x7F)
 #define NFLAG (0x7F)
 
 
 __attribute__((reqd_work_group_size(WORKSIZE, 1, 1)))
 __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);
 	uint gid = get_global_id(0);
 	uint4 X[8];
 	uint4 X[8];