mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Make clear for multiple GPUs.
This commit is contained in:
parent
1549a3e9ea
commit
92e04f47cb
3
main.c
3
main.c
@ -1797,6 +1797,7 @@ int main (int argc, char *argv[])
|
||||
}
|
||||
gpu_threads = total_devices * opt_g_threads;
|
||||
} else {
|
||||
total_devices = nDevs;
|
||||
gpu_threads = nDevs * opt_g_threads;
|
||||
for (i = 0; i < nDevs; i++)
|
||||
gpu_devices[i] = true;
|
||||
@ -1810,7 +1811,7 @@ int main (int argc, char *argv[])
|
||||
logcursor = 4;
|
||||
mining_threads = opt_n_threads + gpu_threads;
|
||||
gpucursor = logcursor;
|
||||
cpucursor = gpucursor + total_devices + 1;
|
||||
cpucursor = gpucursor + total_devices;
|
||||
logstart = cpucursor + (opt_n_threads ? num_processors : 0);
|
||||
logcursor = logstart + 1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user