From d0f18e83ad45a9a25df8549ac41b33aed84edd51 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 15 Mar 2013 22:00:52 +1100 Subject: [PATCH] Do not round up the bufsize to the maximum allocable with scrypt. --- ocl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ocl.c b/ocl.c index 8fcee935..0c527c2b 100644 --- a/ocl.c +++ b/ocl.c @@ -793,8 +793,7 @@ built: if (bufsize > cgpu->max_alloc) { applog(LOG_WARNING, "Maximum buffer memory device %d supports says %u", gpu, cgpu->max_alloc); applog(LOG_WARNING, "Your scrypt settings come to %u", bufsize); - } else - bufsize = cgpu->max_alloc; + } applog(LOG_DEBUG, "Creating scrypt buffer sized %u", bufsize); clState->padbufsize = bufsize;