Browse Source

Show correct GPU from thread number.

Con Kolivas 14 years ago
parent
commit
d1c0cccdf1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cpu-miner.c

+ 1 - 1
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)