Browse Source

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

Con Kolivas 14 years ago
parent
commit
34ecc59f4d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      main.c

+ 1 - 0
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) {