Commit 1711b4eb77f161d9058094a9f82999a495dc427a

Con Kolivas 2012-07-22T00:58:09

Display size of scrypt buffer used in debug.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/ocl.c b/ocl.c
index 4f21b2b..d6e12c5 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);