mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 22:14:36 +00:00
Show correct GPU from thread number.
This commit is contained in:
parent
f11149928a
commit
d1c0cccdf1
@ -886,7 +886,7 @@ static inline cl_int queue_kernel_parameters(dev_blk_ctx *blk, cl_kernel *kernel
|
|||||||
|
|
||||||
static inline int gpu_from_thr_id(int thr_id)
|
static inline int gpu_from_thr_id(int thr_id)
|
||||||
{
|
{
|
||||||
return thr_id;
|
return thr_id % nDevs;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *gpuminer_thread(void *userdata)
|
static void *gpuminer_thread(void *userdata)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user