1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 12:34:27 +00:00

Set default GPU threads to 1 for scrypt.

This commit is contained in:
Con Kolivas 2013-03-16 08:56:37 +11:00
parent 21a36f4840
commit d7d630b86c
2 changed files with 10 additions and 1 deletions

View File

@ -97,7 +97,7 @@ int nDevs;
#endif
#ifdef HAVE_OPENCL
int opt_dynamic_interval = 7;
int opt_g_threads = 2;
int opt_g_threads = -1;
int gpu_threads;
#ifdef USE_SCRYPT
bool opt_scrypt;

View File

@ -1245,6 +1245,15 @@ static void opencl_detect()
if (!nDevs)
return;
/* 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;
}
for (i = 0; i < nDevs; ++i) {
struct cgpu_info *cgpu;