From d91af893c8ac473609c7565c791cc2fab5456de4 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 28 Aug 2012 18:08:39 +1000 Subject: [PATCH] Use correct sdk version detection for SDK 2.7 --- ocl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocl.c b/ocl.c index 042fea2c..450a2d61 100644 --- a/ocl.c +++ b/ocl.c @@ -393,7 +393,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize) strstr(vbuff, "831.4") || strstr(vbuff, "898.1") || // 12.2 driver SDK strstr(vbuff, "923.1") || // 12.4 - strstr(vbuff, "938.1"))) { // SDK 2.7 + strstr(vbuff, "938.2"))) { // SDK 2.7 applog(LOG_INFO, "Selecting diablo kernel"); clState->chosen_kernel = KL_DIABLO; /* Detect all 7970s, older ATI and NVIDIA and use poclbm */ @@ -411,7 +411,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize) if (clState->chosen_kernel == KL_PHATK && (strstr(vbuff, "844.4") || strstr(vbuff, "851.4") || strstr(vbuff, "831.4") || strstr(vbuff, "898.1") || - strstr(vbuff, "923.1") || strstr(vbuff, "938.1"))) { + strstr(vbuff, "923.1") || strstr(vbuff, "938.2"))) { 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.");