mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Skip trying to start thread of GPUs that don't successfully initcl().
This commit is contained in:
parent
14ca888373
commit
237a5067c3
@ -1251,6 +1251,10 @@ int main (int argc, char *argv[])
|
|||||||
|
|
||||||
printf("Init GPU %i\n", i);
|
printf("Init GPU %i\n", i);
|
||||||
clStates[i] = initCl(i, name, sizeof(name));
|
clStates[i] = initCl(i, name, sizeof(name));
|
||||||
|
if (!clStates[i]) {
|
||||||
|
applog(LOG_ERR, "Failed to init GPU %d", i);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
printf("initCl() finished. Found %s\n", name);
|
printf("initCl() finished. Found %s\n", name);
|
||||||
|
|
||||||
if (unlikely(pthread_create(&thr->pth, NULL, gpuminer_thread, thr))) {
|
if (unlikely(pthread_create(&thr->pth, NULL, gpuminer_thread, thr))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user