1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Disable a GPU device should the thread fail to init.

This commit is contained in:
Con Kolivas 2011-07-24 10:59:19 +10:00
parent 2e37e3374e
commit 27c7d2a480

1
main.c
View File

@ -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);