mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 11:34:16 +00:00
Get the device number from the thread id, not the other way around.
This commit is contained in:
parent
2864892e7b
commit
5fd73374b3
2
main.c
2
main.c
@ -1925,7 +1925,7 @@ static bool active_device(int thr_id)
|
|||||||
if (thr_id < gpu_threads) {
|
if (thr_id < gpu_threads) {
|
||||||
if (thr_id > nDevs)
|
if (thr_id > nDevs)
|
||||||
return false;
|
return false;
|
||||||
if (!gpu_devices[thr_id])
|
if (!gpu_devices[dev_from_id(thr_id)])
|
||||||
return false;
|
return false;
|
||||||
} else if (thr_id > gpu_threads + num_processors)
|
} else if (thr_id > gpu_threads + num_processors)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user