From 92e04f47cb2d1a3c3a5eccefbc595317c9e63a6b Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 11 Jul 2011 13:46:01 +1000 Subject: [PATCH] Make clear for multiple GPUs. --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index b4c64ac1..8f42f0a4 100644 --- a/main.c +++ b/main.c @@ -1797,6 +1797,7 @@ int main (int argc, char *argv[]) } gpu_threads = total_devices * opt_g_threads; } else { + total_devices = nDevs; gpu_threads = nDevs * opt_g_threads; for (i = 0; i < nDevs; i++) gpu_devices[i] = true; @@ -1810,7 +1811,7 @@ int main (int argc, char *argv[]) logcursor = 4; mining_threads = opt_n_threads + gpu_threads; gpucursor = logcursor; - cpucursor = gpucursor + total_devices + 1; + cpucursor = gpucursor + total_devices; logstart = cpucursor + (opt_n_threads ? num_processors : 0); logcursor = logstart + 1;