1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-13 06:01:03 +00:00

ocl: use 'nf' instead of 'n' in compiled kernel binary name.

It is used as a factor number here (e.g. 10, not 1024).
This commit is contained in:
Noel Maersk 2014-02-24 16:24:00 +02:00
parent 5b42d38f33
commit 4b3b2ef5a6

2
ocl.c

@ -523,7 +523,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
if (clState->goffset)
strcat(binaryfilename, "g");
sprintf(numbuf, "lg%utc%un%u", cgpu->lookup_gap, (unsigned int)cgpu->thread_concurrency,opt_nfactor);
sprintf(numbuf, "lg%utc%unf%u", cgpu->lookup_gap, (unsigned int)cgpu->thread_concurrency,opt_nfactor);
strcat(binaryfilename, numbuf);
sprintf(numbuf, "w%d", (int)clState->wsize);