mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 13:04:29 +00:00
Disable the correct threads on changing to/from dynamic mode.
This commit is contained in:
parent
c98f81c089
commit
58897bf382
8
main.c
8
main.c
@ -3579,11 +3579,15 @@ retry:
|
|||||||
static void pause_dynamic_threads(int gpu)
|
static void pause_dynamic_threads(int gpu)
|
||||||
{
|
{
|
||||||
struct cgpu_info *cgpu = &gpus[gpu];
|
struct cgpu_info *cgpu = &gpus[gpu];
|
||||||
int i;
|
int i, thread_no = 0;
|
||||||
|
|
||||||
for (i = 1; i < cgpu->threads; i++) {
|
for (i = 0; i < mining_threads; i++) {
|
||||||
struct thr_info *thr = &thr_info[i];
|
struct thr_info *thr = &thr_info[i];
|
||||||
|
|
||||||
|
if (thr->cgpu != cgpu)
|
||||||
|
continue;
|
||||||
|
if (!thread_no++)
|
||||||
|
continue;
|
||||||
thr->pause = cgpu->dynamic;
|
thr->pause = cgpu->dynamic;
|
||||||
if (!cgpu->dynamic)
|
if (!cgpu->dynamic)
|
||||||
tq_push(thr->q, &ping);
|
tq_push(thr->q, &ping);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user