Commit 9a3ae2660ef2a33fc382156df415deb67fbe9062

Con Kolivas 2012-04-27T10:22:53

Add support for latest ATI SDK on windows.

diff --git a/ocl.c b/ocl.c
index 2b8155c..5c7ba24 100644
--- a/ocl.c
+++ b/ocl.c
@@ -359,7 +359,8 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
 			(strstr(vbuff, "844.4") ||  // Linux 64 bit ATI 2.6 SDK
 			 strstr(vbuff, "851.4") ||  // Windows 64 bit ""
 			 strstr(vbuff, "831.4") ||
-			 strstr(vbuff, "898.1"))) { // 12.2 driver SDK
+			 strstr(vbuff, "898.1") ||  // 12.2 driver SDK 
+			 strstr(vbuff, "923.1"))) { // 12.4 driver SDK
 				applog(LOG_INFO, "Selecting diablo kernel");
 				clState->chosen_kernel = KL_DIABLO;
 		/* Detect all 7970s, older ATI and NVIDIA and use poclbm */
@@ -376,7 +377,8 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
 		clState->chosen_kernel = gpus[gpu].kernel;
 		if (clState->chosen_kernel == KL_PHATK &&
 		    (strstr(vbuff, "844.4") || strstr(vbuff, "851.4") ||
-		     strstr(vbuff, "831.4") || strstr(vbuff, "898.1"))) {
+		     strstr(vbuff, "831.4") || strstr(vbuff, "898.1") ||
+		     strstr(vbuff, "923.1"))) {
 			applog(LOG_WARNING, "WARNING: You have selected the phatk kernel.");
 			applog(LOG_WARNING, "You are running SDK 2.6 which performs poorly with this kernel.");
 			applog(LOG_WARNING, "Downgrade your SDK and delete any .bin files before starting again.");