1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-24 21:44:38 +00:00

replace sizeof(unsigned long long) by 8 in ocl.c

This commit is contained in:
djm34 2015-08-08 16:15:52 +02:00
parent 09bc88214e
commit 5c19cba4f2
2 changed files with 4 additions and 4 deletions

View File

@ -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

4
ocl.c
View File

@ -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. */