From 499837e15eaadf60c2479fb7c58dac04c5f89f55 Mon Sep 17 00:00:00 2001 From: djm34 Date: Sat, 8 Aug 2015 16:18:27 +0200 Subject: [PATCH] same here shouldn't change anything --- kernel/Lyra2REv2.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/Lyra2REv2.cl b/kernel/Lyra2REv2.cl index 88cbc7b8..a4344fb9 100644 --- a/kernel/Lyra2REv2.cl +++ b/kernel/Lyra2REv2.cl @@ -285,7 +285,7 @@ __kernel void search3(__global uchar* hashes,__global uchar* matrix ) uint gid = get_global_id(0); // __global hash_t *hash = &(hashes[gid-get_global_offset(0)]); __global hash_t *hash = (__global hash_t *)(hashes + (4 * sizeof(ulong)* (get_global_id(0) % MAX_GLOBAL_THREADS))); - __global ulong4 *DMatrix = (__global ulong4 *)(matrix + (4 * memshift * 4 * 4 * sizeof(ulong)* (get_global_id(0) % MAX_GLOBAL_THREADS))); + __global ulong4 *DMatrix = (__global ulong4 *)(matrix + (4 * memshift * 4 * 4 * 8 * (get_global_id(0) % MAX_GLOBAL_THREADS))); // uint offset = (4 * memshift * 4 * 4 * sizeof(ulong)* (get_global_id(0) % MAX_GLOBAL_THREADS))/32; ulong4 state[4];