Browse Source

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

It is used as a factor number here (e.g. 10, not 1024).
build-mingw
Noel Maersk 11 years ago
parent
commit
4b3b2ef5a6
  1. 2
      ocl.c

2
ocl.c

@ -523,7 +523,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize) @@ -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);

Loading…
Cancel
Save