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:
parent
09bc88214e
commit
5c19cba4f2
@ -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
4
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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user