Commit 7d3635c7a45afcc452e1b4cd92d5c5ac1eedae65

Con Kolivas 2012-02-15T21:03:24

Add message explaining 2nd thread disabling for dynamic mode and how to tune it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/device-gpu.c b/device-gpu.c
index 687e3d2..8e4a92a 100644
--- a/device-gpu.c
+++ b/device-gpu.c
@@ -425,6 +425,11 @@ void pause_dynamic_threads(int gpu)
 			continue;
 		if (!thread_no++)
 			continue;
+		if (!thr->pause && cgpu->dynamic) {
+			applog(LOG_WARNING, "Disabling extra threads due to dynamic mode.");
+			applog(LOG_WARNING, "Tune dynamic intensity with --gpu-dyninterval");
+		}
+
 		thr->pause = cgpu->dynamic;
 		if (!cgpu->dynamic && cgpu->enabled)
 			tq_push(thr->q, &ping);