Commit 428d5e5d4d601e4d52d529938cfc9d65965ee338

Con Kolivas 2012-07-16T13:22:35

Limit scrypt to 1 vector.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/ocl.c b/ocl.c
index 675a31c..16f23f0 100644
--- a/ocl.c
+++ b/ocl.c
@@ -420,6 +420,8 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
 		case KL_SCRYPT:
 			strcpy(filename, SCRYPT_KERNNAME".cl");
 			strcpy(binaryfilename, SCRYPT_KERNNAME);
+			/* Scrypt only supports vector 1 */
+			gpus[gpu].vwidth = 1;
 			break;
 		case KL_NONE: /* Shouldn't happen */
 		case KL_DIABLO: