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

log: warn on using kernel zuikkis with lookup-gap != 2.

This commit is contained in:
Noel Maersk 2014-03-23 15:09:43 +02:00
parent 7a3a510216
commit 89d641628b

5
ocl.c
View File

@ -422,9 +422,10 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
strcpy(filename, strbuf); strcpy(filename, strbuf);
strcpy(binaryfilename, cgpu->kernelname); strcpy(binaryfilename, cgpu->kernelname);
/* Kernel zuikkis only supports lookup-gap 2 */ if ((strcmp(cgpu->kernelname, "zuikkis") == 0) && (cgpu->lookup_gap != 2)) {
if (strcmp(cgpu->kernelname, "zuikkis") == 0) applog(LOG_WARNING, "Kernel zuikkis only supports lookup-gap = 2, forcing.");
cgpu->lookup_gap = 2; cgpu->lookup_gap = 2;
}
/* For some reason 2 vectors is still better even if the card says /* For some reason 2 vectors is still better even if the card says
* otherwise, and many cards lie about their max so use 256 as max * otherwise, and many cards lie about their max so use 256 as max