Use correct variable on output in diakgcn kernel.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
diff --git a/diakgcn120208.cl b/diakgcn120208.cl
index 84f02e1..f128ab7 100644
--- a/diakgcn120208.cl
+++ b/diakgcn120208.cl
@@ -590,13 +590,13 @@ __kernel
if (!result) {
if (!V[7].x)
- output[FOUND] = output[NFLAG & W[3].x] = W[3].x;
+ output[FOUND] = output[NFLAG & nonce.x] = nonce.x;
if (!V[7].y)
- output[FOUND] = output[NFLAG & W[3].y] = W[3].y;
+ output[FOUND] = output[NFLAG & nonce.y] = nonce.y;
if (!V[7].z)
- output[FOUND] = output[NFLAG & W[3].z] = W[3].z;
+ output[FOUND] = output[NFLAG & nonce.z] = nonce.z;
if (!V[7].w)
- output[FOUND] = output[NFLAG & W[3].w] = W[3].w;
+ output[FOUND] = output[NFLAG & nonce.w] = nonce.w;
}
#else
#ifdef VECTORS2
@@ -606,13 +606,13 @@ __kernel
if (!result) {
if (!V[7].x)
- output[FOUND] = output[NFLAG & W[3].x] = W[3].x;
+ output[FOUND] = output[NFLAG & nonce.x] = nonce.x;
if (!V[7].y)
- output[FOUND] = output[NFLAG & W[3].y] = W[3].y;
+ output[FOUND] = output[NFLAG & nonce.y] = nonce.y;
}
#else
if (V[7] == 0x136032ed)
- output[FOUND] = output[NFLAG & W[3]] = W[3];
+ output[FOUND] = output[NFLAG & nonce] = nonce;
#endif
#endif
}