From 5c19cba4f24bedc0a95657ba48378c93fa71cdf5 Mon Sep 17 00:00:00 2001 From: djm34 Date: Sat, 8 Aug 2015 16:15:52 +0200 Subject: [PATCH] replace sizeof(unsigned long long) by 8 in ocl.c --- kernel/Lyra2REv2.cl | 4 ++-- ocl.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/Lyra2REv2.cl b/kernel/Lyra2REv2.cl index c1adbc37..88cbc7b8 100644 --- a/kernel/Lyra2REv2.cl +++ b/kernel/Lyra2REv2.cl @@ -48,8 +48,8 @@ typedef int sph_s32; typedef unsigned long sph_u64; typedef long sph_s64; #else -typedef unsigned long sph_u64; -typedef long sph_s64; +typedef unsigned long long sph_u64; +typedef long long sph_s64; #endif diff --git a/ocl.c b/ocl.c index d1e8d7e5..13856123 100644 --- a/ocl.c +++ b/ocl.c @@ -830,8 +830,8 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize, algorithm_t *alg } else if (!safe_cmp(algorithm->name, "lyra2REv2") ) { /* The scratch/pad-buffer needs 32kBytes memory per thread. */ - bufsize = 4 * 4 * 12 * sizeof(unsigned long long) * cgpu->thread_concurrency; - buf1size = 4 * sizeof(unsigned long long) * cgpu->thread_concurrency; //matrix + bufsize = LYRA_SCRATCHBUF_SIZE * cgpu->thread_concurrency; + buf1size = 4* 8 * cgpu->thread_concurrency; //matrix /* This is the input buffer. For yescrypt this is guaranteed to be * 80 bytes only. */