mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 12:34:27 +00:00
Display size of scrypt buffer used in debug.
This commit is contained in:
parent
17dfe74f96
commit
1711b4eb77
1
ocl.c
1
ocl.c
@ -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…
x
Reference in New Issue
Block a user