1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

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

This commit is contained in:
ckolivas 2012-02-15 14:52:29 +11:00
parent 6a78594618
commit e7fdadfc8f

6
ocl.c
View File

@ -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;