mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-14 08:48:01 +00:00
Fix build error without scrypt enabled.
This commit is contained in:
parent
b40c8b848f
commit
97aa6ea492
2
ocl.c
2
ocl.c
@ -536,8 +536,10 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
|
|||||||
if (clState->goffset)
|
if (clState->goffset)
|
||||||
strcat(binaryfilename, "g");
|
strcat(binaryfilename, "g");
|
||||||
if (opt_scrypt) {
|
if (opt_scrypt) {
|
||||||
|
#ifdef USE_SCRYPT
|
||||||
sprintf(numbuf, "lg%dtc%d", cgpu->lookup_gap, cgpu->thread_concurrency);
|
sprintf(numbuf, "lg%dtc%d", cgpu->lookup_gap, cgpu->thread_concurrency);
|
||||||
strcat(binaryfilename, numbuf);
|
strcat(binaryfilename, numbuf);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
sprintf(numbuf, "v%d", clState->vwidth);
|
sprintf(numbuf, "v%d", clState->vwidth);
|
||||||
strcat(binaryfilename, numbuf);
|
strcat(binaryfilename, numbuf);
|
||||||
|
Loading…
Reference in New Issue
Block a user