Commit e7fdadfc8fc388f68772d5a4c2740da60287c889

ckolivas 2012-02-15T14:52:29

Automatically choose phatk kernel for bitalign non-gcn ATI cards, and then only select poclbm if SDK2.6 is detected.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/ocl.c b/ocl.c
index 42b4e1e..385d5f2 100644
--- a/ocl.c
+++ b/ocl.c
@@ -357,11 +357,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
 
 	if (chosen_kernel == KL_NONE) {
 		if (strstr(name, "Tahiti") // GCN
-		    || !clState->hasBitAlign // Older Radeon & Nvidia
-		    || strstr(vbuff, "844.4") // Linux 64 bit ATI 2.6 SDK
-		    || strstr(vbuff, "851.4") // Windows 64 bit ""
-		    || strstr(vbuff, "831.4") // Windows & Linux 32 bit ""
-		)
+		    || !clState->hasBitAlign) // Older Radeon & Nvidia
 			clState->chosen_kernel = KL_POCLBM;
 		else
 			clState->chosen_kernel = KL_PHATK;