From 89d641628b79f03b0520f0eb2586275a23420a0f Mon Sep 17 00:00:00 2001 From: Noel Maersk Date: Sun, 23 Mar 2014 15:09:43 +0200 Subject: [PATCH] log: warn on using kernel zuikkis with lookup-gap != 2. --- ocl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ocl.c b/ocl.c index 84ec3e5b..221234e8 100644 --- a/ocl.c +++ b/ocl.c @@ -422,9 +422,10 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize) strcpy(filename, strbuf); strcpy(binaryfilename, cgpu->kernelname); - /* Kernel zuikkis only supports lookup-gap 2 */ - if (strcmp(cgpu->kernelname, "zuikkis") == 0) + if ((strcmp(cgpu->kernelname, "zuikkis") == 0) && (cgpu->lookup_gap != 2)) { + applog(LOG_WARNING, "Kernel zuikkis only supports lookup-gap = 2, forcing."); cgpu->lookup_gap = 2; + } /* 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