Add detection for version 898.1 SDK as well but only give SDK 2.6 warning once on startup instead of with each device initialisation.
diff --git a/ocl.c b/ocl.c
index ff2551e..43f9a28 100644
--- a/ocl.c
+++ b/ocl.c
@@ -113,7 +113,8 @@ int clDevicesNum(void) {
applog(LOG_INFO, "CL Platform %d version: %s", i, pbuff);
if (strstr(pbuff, "844.4") /* Linux 64 bit ATI 2.6 SDK */ ||
strstr(pbuff, "851.4") /* Windows 64 bit "" */ ||
- strstr(pbuff, "831.4") /* Windows & Linux 32 bit "" */ ) {
+ strstr(pbuff, "831.4") /* Windows & Linux 32 bit "" */ ||
+ strstr(pbuff, "898.1") /* Windows 64 bit 12.2 driver SDK */) {
applog(LOG_WARNING, "AMD OpenCL SDK 2.6 installed giving POOR PERFORMANCE on R5xxx and R6xxx.");
applog(LOG_WARNING, "Downgrade SDK, delete .bin files and restart cgminer to fix this.");
}
@@ -237,13 +238,6 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
if (status == CL_SUCCESS)
applog(LOG_INFO, "CL Platform version: %s", vbuff);
- if (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 "" */ ) {
- applog(LOG_WARNING, "AMD OpenCL SDK 2.6 installed giving POOR PERFORMANCE on R5xxx and R6xxx.");
- applog(LOG_WARNING, "Downgrade SDK, delete .bin files and restart cgminer to fix this.");
- }
-
status = clGetDeviceIDs(platform, CL_DEVICE_TYPE_GPU, 0, NULL, &numDevices);
if (status != CL_SUCCESS) {
applog(LOG_ERR, "Error: Getting Device IDs (num)");