mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-10 13:11:55 +00:00
fix compile without ADL
This commit is contained in:
parent
518d6e9eca
commit
6152638dd7
10
sgminer.c
10
sgminer.c
@ -6280,9 +6280,13 @@ static void get_work_prepare_thread(struct thr_info *mythr, struct work *work)
|
|||||||
if (!soft_restart) {
|
if (!soft_restart) {
|
||||||
unsigned int n_threads = 0;
|
unsigned int n_threads = 0;
|
||||||
pthread_t restart_thr;
|
pthread_t restart_thr;
|
||||||
set_gpu_threads(work->pool->gpu_threads);
|
#ifdef HAVE_ADL
|
||||||
for (i = 0; i < total_devices; ++i)
|
set_gpu_threads(work->pool->gpu_threads);
|
||||||
n_threads += devices[i]->threads;
|
for (i = 0; i < total_devices; ++i)
|
||||||
|
n_threads += devices[i]->threads;
|
||||||
|
#else
|
||||||
|
n_threads = mining_threads;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (unlikely(pthread_create(&restart_thr, NULL, restart_mining_threads_thread, (void *)n_threads)))
|
if (unlikely(pthread_create(&restart_thr, NULL, restart_mining_threads_thread, (void *)n_threads)))
|
||||||
quit(1, "restart_mining_threads create thread failed");
|
quit(1, "restart_mining_threads create thread failed");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user