Browse Source

Display size of scrypt buffer used in debug.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
1711b4eb77
  1. 1
      ocl.c

1
ocl.c

@ -761,6 +761,7 @@ built: @@ -761,6 +761,7 @@ built:
if (opt_scrypt) {
size_t ipt = (1024 / gpus[gpu].lookup_gap + (1024 % gpus[gpu].lookup_gap > 0));
size_t bufsize = 128 * ipt * gpus[gpu].thread_concurrency;
applog(LOG_DEBUG, "Creating scrypt buffer sized %d", bufsize);
clState->CLbuffer0 = clCreateBuffer(clState->context, CL_MEM_READ_ONLY, 80, NULL, &status);
clState->padbuffer8 = clCreateBuffer(clState->context, CL_MEM_READ_WRITE, bufsize, NULL, &status);

Loading…
Cancel
Save