mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 01:44:23 +00:00
opencl: move lookup-gap check for kernel zuikkis to after it is set from opt_lg.
Introduced by 89d641628b
Closes https://github.com/veox/sgminer/issues/172
This commit is contained in:
parent
377266a264
commit
27e4515b9a
10
ocl.c
10
ocl.c
@ -419,11 +419,6 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
|
||||
strcpy(filename, strbuf);
|
||||
strcpy(binaryfilename, cgpu->kernelname);
|
||||
|
||||
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
|
||||
* unless explicitly set on the command line. Tahiti prefers 1 */
|
||||
@ -456,6 +451,11 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
|
||||
} else
|
||||
cgpu->lookup_gap = cgpu->opt_lg;
|
||||
|
||||
if ((strcmp(cgpu->kernelname, "zuikkis") == 0) && (cgpu->lookup_gap != 2)) {
|
||||
applog(LOG_WARNING, "Kernel zuikkis only supports lookup-gap = 2 (currently %d), forcing.", cgpu->lookup_gap);
|
||||
cgpu->lookup_gap = 2;
|
||||
}
|
||||
|
||||
if (!cgpu->opt_tc) {
|
||||
unsigned int sixtyfours;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user