Commit d1c0cccdf110fa047ddd2acd7ba22d500205d305

Con Kolivas 2011-06-26T09:09:07

Show correct GPU from thread number.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cpu-miner.c b/cpu-miner.c
index e5849ed..6f7be53 100644
--- a/cpu-miner.c
+++ b/cpu-miner.c
@@ -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)
 {
-	return thr_id;
+	return thr_id % nDevs;
 }
 
 static void *gpuminer_thread(void *userdata)