mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
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.
This commit is contained in:
parent
17cc279adb
commit
0b6e35cda9
10
ocl.c
10
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)");
|
||||
|
Loading…
Reference in New Issue
Block a user