mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 13:04:29 +00:00
Show all devices even if only selected are enabled.
This commit is contained in:
parent
505b18597b
commit
b93e6a4254
3
main.c
3
main.c
@ -1798,7 +1798,6 @@ int main (int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
gpu_threads = total_devices * opt_g_threads;
|
gpu_threads = total_devices * opt_g_threads;
|
||||||
} else {
|
} else {
|
||||||
total_devices = nDevs;
|
|
||||||
gpu_threads = nDevs * opt_g_threads;
|
gpu_threads = nDevs * opt_g_threads;
|
||||||
for (i = 0; i < nDevs; i++)
|
for (i = 0; i < nDevs; i++)
|
||||||
gpu_devices[i] = true;
|
gpu_devices[i] = true;
|
||||||
@ -1812,7 +1811,7 @@ int main (int argc, char *argv[])
|
|||||||
logcursor = 4;
|
logcursor = 4;
|
||||||
mining_threads = opt_n_threads + gpu_threads;
|
mining_threads = opt_n_threads + gpu_threads;
|
||||||
gpucursor = logcursor;
|
gpucursor = logcursor;
|
||||||
cpucursor = gpucursor + total_devices;
|
cpucursor = gpucursor + nDevs;
|
||||||
logstart = cpucursor + (opt_n_threads ? num_processors : 0);
|
logstart = cpucursor + (opt_n_threads ? num_processors : 0);
|
||||||
logcursor = logstart + 1;
|
logcursor = logstart + 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user