Commit 31a32e07899688d77c3b2d408b9ee4fafff9defd

Con Kolivas 2012-01-30T22:38:57

Set virtual GPUs to work when ADL is disabled or all mining will occur on GPU 0.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/main.c b/main.c
index 0179b8e..4ddcd07 100644
--- a/main.c
+++ b/main.c
@@ -5587,6 +5587,7 @@ static void opencl_detect()
 		cgpu->api = &opencl_api;
 		cgpu->device_id = i;
 		cgpu->threads = opt_g_threads;
+		cgpu->virtual_gpu = i;
 	}
 
 	if (!opt_noadl)