Commit e9c3d7309a9a3554092aab64d98e924727eefd08

Con Kolivas 2012-02-19T18:32:56

Tahiti prefers worksize 64 with poclbm.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/ocl.c b/ocl.c
index e1a5840..9fcd500 100644
--- a/ocl.c
+++ b/ocl.c
@@ -355,6 +355,8 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
 		clState->preferred_vwidth = opt_vectors;
 	if (opt_worksize && opt_worksize <= (int)clState->max_work_size)
 		clState->work_size = opt_worksize;
+	else if (strstr(name, "Tahiti"))
+		clState->work_size = 64;
 	else
 		clState->work_size = (clState->max_work_size <= 256 ? clState->max_work_size : 256) /
 				clState->preferred_vwidth;