Browse Source

Vals variables appearing first in the array in poclbm is faster.

Con Kolivas 14 years ago
parent
commit
1a2130cc53
1 changed files with 2 additions and 2 deletions
  1. 2 2
      poclbm120327.cl

+ 2 - 2
poclbm120327.cl

@@ -82,8 +82,8 @@ void search(const uint state0, const uint state1, const uint state2, const uint
 	const uint PreVal4addT1, const uint Preval0,
 	const uint PreVal4addT1, const uint Preval0,
 	__global uint * output)
 	__global uint * output)
 {
 {
-	u W[24];
-	u *Vals = &W[16]; // Now put at W[16] to be in same array
+	u Vals[24];
+	u *W = &Vals[8];
 
 
 #ifdef GOFFSET
 #ifdef GOFFSET
 	const u nonce = (uint)(get_global_id(0));
 	const u nonce = (uint)(get_global_id(0));