From 1711b4eb77f161d9058094a9f82999a495dc427a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 22 Jul 2012 00:58:09 +1000 Subject: [PATCH] Display size of scrypt buffer used in debug. --- ocl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ocl.c b/ocl.c index 4f21b2bb..d6e12c52 100644 --- a/ocl.c +++ b/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);