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:
parent
21a36f4840
commit
d7d630b86c
@ -97,7 +97,7 @@ int nDevs;
|
|||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_OPENCL
|
#ifdef HAVE_OPENCL
|
||||||
int opt_dynamic_interval = 7;
|
int opt_dynamic_interval = 7;
|
||||||
int opt_g_threads = 2;
|
int opt_g_threads = -1;
|
||||||
int gpu_threads;
|
int gpu_threads;
|
||||||
#ifdef USE_SCRYPT
|
#ifdef USE_SCRYPT
|
||||||
bool opt_scrypt;
|
bool opt_scrypt;
|
||||||
|
@ -1245,6 +1245,15 @@ static void opencl_detect()
|
|||||||
if (!nDevs)
|
if (!nDevs)
|
||||||
return;
|
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) {
|
for (i = 0; i < nDevs; ++i) {
|
||||||
struct cgpu_info *cgpu;
|
struct cgpu_info *cgpu;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user