Disable a GPU device should the thread fail to init.
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);