mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 15:27:53 +00:00
Disable a GPU device should the thread fail to init.
This commit is contained in:
parent
2e37e3374e
commit
27c7d2a480
1
main.c
1
main.c
@ -3456,6 +3456,7 @@ int main (int argc, char *argv[])
|
|||||||
clStates[i] = initCl(gpu, name, sizeof(name));
|
clStates[i] = initCl(gpu, name, sizeof(name));
|
||||||
if (!clStates[i]) {
|
if (!clStates[i]) {
|
||||||
applog(LOG_ERR, "Failed to init GPU thread %d", i);
|
applog(LOG_ERR, "Failed to init GPU thread %d", i);
|
||||||
|
gpu_devices[i] = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
applog(LOG_INFO, "initCl() finished. Found %s", name);
|
applog(LOG_INFO, "initCl() finished. Found %s", name);
|
||||||
|
Loading…
Reference in New Issue
Block a user