From fd51e5ba01f25222d43472dc51f989d19e1acfb9 Mon Sep 17 00:00:00 2001 From: Tydus Date: Mon, 30 Jul 2012 18:27:33 +0800 Subject: [PATCH] Add scrypt support while writing conf --- cgminer.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cgminer.c b/cgminer.c index 0de93f04..7f8a7128 100644 --- a/cgminer.c +++ b/cgminer.c @@ -2911,6 +2911,20 @@ void write_config(FILE *fcfg) 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 fputs("\",\n\"gpu-engine\" : \"", fcfg); for(i = 0; i < nDevs; i++)