Browse Source

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

djm34
djm34 9 years ago
parent
commit
5c19cba4f2
  1. 4
      kernel/Lyra2REv2.cl
  2. 4
      ocl.c

4
kernel/Lyra2REv2.cl

@ -48,8 +48,8 @@ typedef int sph_s32; @@ -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

@ -830,8 +830,8 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize, algorithm_t *alg @@ -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…
Cancel
Save