Commit 34ecc59f4d872c05d54c7e4b10f980bd37503d48

Con Kolivas 2011-07-15T08:56:52

Forgot to set total_devices for the purposes of finding a positive active_device.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/main.c b/main.c
index 477417c..f8dc242 100644
--- a/main.c
+++ b/main.c
@@ -2119,6 +2119,7 @@ int main (int argc, char *argv[])
 		gpu_threads = nDevs * opt_g_threads;
 		for (i = 0; i < nDevs; i++)
 			gpu_devices[i] = true;
+		total_devices = nDevs;
 	}
 
 	if (!gpu_threads && !forced_n_threads) {