Browse Source

Bugfix: opencl: Dynamic mode should disable threads for this device, not just N after the first

Conflicts:
	driver-opencl.c
Luke Dashjr 12 years ago
parent
commit
9aab7fe1c8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      driver-opencl.c

+ 2 - 1
driver-opencl.c

@@ -814,8 +814,9 @@ void pause_dynamic_threads(int gpu)
 	int i;
 	int i;
 
 
 	for (i = 1; i < cgpu->threads; i++) {
 	for (i = 1; i < cgpu->threads; i++) {
-		struct thr_info *thr = &thr_info[i];
+		struct thr_info *thr;
 
 
+		thr = cgpu->thr[i];
 		if (!thr->pause && cgpu->dynamic) {
 		if (!thr->pause && cgpu->dynamic) {
 			applog(LOG_WARNING, "Disabling extra threads due to dynamic mode.");
 			applog(LOG_WARNING, "Disabling extra threads due to dynamic mode.");
 			applog(LOG_WARNING, "Tune dynamic intensity with --gpu-dyninterval");
 			applog(LOG_WARNING, "Tune dynamic intensity with --gpu-dyninterval");