mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 15:27:53 +00:00
Merge pull request #279 from tyeken8/tydus
Add scrypt support while writing conf
This commit is contained in:
commit
ac131d3138
14
cgminer.c
14
cgminer.c
@ -2944,6 +2944,20 @@ void write_config(FILE *fcfg)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef USE_SCRYPT
|
||||||
|
fputs("\",\n\"lookup-gap\" : \"", fcfg);
|
||||||
|
for(i = 0; i < nDevs; i++)
|
||||||
|
fprintf(fcfg, "%s%d", i > 0 ? "," : "",
|
||||||
|
(int)gpus[i].lookup_gap);
|
||||||
|
fputs("\",\n\"thread-concurrency\" : \"", fcfg);
|
||||||
|
for(i = 0; i < nDevs; i++)
|
||||||
|
fprintf(fcfg, "%s%d", i > 0 ? "," : "",
|
||||||
|
(int)gpus[i].thread_concurrency);
|
||||||
|
fputs("\",\n\"shaders\" : \"", fcfg);
|
||||||
|
for(i = 0; i < nDevs; i++)
|
||||||
|
fprintf(fcfg, "%s%d", i > 0 ? "," : "",
|
||||||
|
(int)gpus[i].shaders);
|
||||||
|
#endif
|
||||||
#ifdef HAVE_ADL
|
#ifdef HAVE_ADL
|
||||||
fputs("\",\n\"gpu-engine\" : \"", fcfg);
|
fputs("\",\n\"gpu-engine\" : \"", fcfg);
|
||||||
for(i = 0; i < nDevs; i++)
|
for(i = 0; i < nDevs; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user