Commit 1a2130cc535d3beec5aabc64aed050b484eb91c1

Con Kolivas 2012-03-31T09:49:39

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/poclbm120327.cl b/poclbm120327.cl
index 92bc707..970f233 100644
--- a/poclbm120327.cl
+++ b/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,
 	__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
 	const u nonce = (uint)(get_global_id(0));