Commit d0f18e83ad45a9a25df8549ac41b33aed84edd51

Con Kolivas 2013-03-15T22:00:52

Do not round up the bufsize to the maximum allocable with scrypt.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/ocl.c b/ocl.c
index 8fcee93..0c527c2 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;