Commit a3d90f84e259f71f2d805645fecb722f1ca6e5cd

Con Kolivas 2012-01-29T11:01:17

Default to poclbm kernel on Tahiti (7970) since phatk does not work, even though performance is sub-standard so that at least it will mine successfully by default.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/ocl.c b/ocl.c
index 4e3b341..cebc3bd 100644
--- a/ocl.c
+++ b/ocl.c
@@ -349,10 +349,10 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
 	char filename[16];
 
 	if (chosen_kernel == KL_NONE) {
-		if (clState->hasBitAlign)
-			chosen_kernel = KL_PHATK;
-		else
+		if (!clState->hasBitAlign || strstr(name, "Tahiti"))
 			chosen_kernel = KL_POCLBM;
+		else
+			chosen_kernel = KL_PHATK;
 	}
 
 	switch (chosen_kernel) {