Commit da2bba3e9ca032d4c1cbcbc46443e5389b1713c3

Con Kolivas 2011-07-12T23:08:02

Initialise it to localid.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/phatk110711.cl b/phatk110711.cl
index 5f1aa6c..14069c9 100644
--- a/phatk110711.cl
+++ b/phatk110711.cl
@@ -84,7 +84,7 @@ __kernel void search(	const uint state0, const uint state1, const uint state2, c
 {
 	u W[124];
 	u Vals[8];
-	uint it;
+	uint it = get_local_id(0);
 
 	Vals[1] = B1;
 	Vals[2] = C1;