Commit 57e5bfbb252014303d6b1dd2c8f2430eca310110

Con Kolivas 2013-04-21T09:36:49

Set default ocl work size for scrypt to 256.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/ocl.c b/ocl.c
index 2d66971..3867440 100644
--- a/ocl.c
+++ b/ocl.c
@@ -469,6 +469,8 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
 
 	if (cgpu->work_size && cgpu->work_size <= clState->max_work_size)
 		clState->wsize = cgpu->work_size;
+	else if (opt_scrypt)
+		clState->wsize = 256;
 	else if (strstr(name, "Tahiti"))
 		clState->wsize = 64;
 	else