Browse Source

Disable a GPU device should the thread fail to init.

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

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