Browse Source

Merge commit 'd7d630b' into cg_merges_20130513

Conflicts:
	driver-opencl.c
	miner.c
Luke Dashjr 12 years ago
parent
commit
15f803a6bf
1 changed files with 8 additions and 2 deletions
  1. 8 2
      driver-opencl.c

+ 8 - 2
driver-opencl.c

@@ -1441,8 +1441,14 @@ static void opencl_detect()
 	if (!nDevs)
 		return;
 
-	if (opt_g_threads == -1)
-		opt_g_threads = 2;
+	/* If opt_g_threads is not set, use default 1 thread on scrypt and
+	 * 2 for regular mining */
+	if (opt_g_threads == -1) {
+		if (opt_scrypt)
+			opt_g_threads = 1;
+		else
+			opt_g_threads = 2;
+	}
 
 #ifdef HAVE_SENSORS
 	struct opencl_device_data *data;