Commit 27c7d2a4802e8a812207bd50a4a9b8c390897991

Con Kolivas 2011-07-24T10:59:19

Disable a GPU device should the thread fail to init.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/main.c b/main.c
index 577adc8..003f271 100644
--- a/main.c
+++ b/main.c
@@ -3456,6 +3456,7 @@ int main (int argc, char *argv[])
 		clStates[i] = initCl(gpu, name, sizeof(name));
 		if (!clStates[i]) {
 			applog(LOG_ERR, "Failed to init GPU thread %d", i);
+			gpu_devices[i] = false;
 			continue;
 		}
 		applog(LOG_INFO, "initCl() finished. Found %s", name);