Skip to content

Commit

Permalink
log: warn on using kernel zuikkis with lookup-gap != 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
veox committed Mar 23, 2014
1 parent 7a3a510 commit 89d6416
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ocl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89d6416

Please sign in to comment.