|
|
@ -770,7 +770,7 @@ retry: |
|
|
|
thr = mining_thr[i]; |
|
|
|
thr = mining_thr[i]; |
|
|
|
mutex_unlock(&mining_thr_lock); |
|
|
|
mutex_unlock(&mining_thr_lock); |
|
|
|
cgpu = thr->cgpu; |
|
|
|
cgpu = thr->cgpu; |
|
|
|
if (cgpu->drv->drv != DRIVER_OPENCL) |
|
|
|
if (cgpu->drv->drv_id != DRIVER_OPENCL) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
if (dev_from_id(i) != selected) |
|
|
|
if (dev_from_id(i) != selected) |
|
|
|
continue; |
|
|
|
continue; |
|
|
@ -1159,7 +1159,7 @@ select_cgpu: |
|
|
|
thr = mining_thr[thr_id]; |
|
|
|
thr = mining_thr[thr_id]; |
|
|
|
mutex_unlock(&mining_thr_lock); |
|
|
|
mutex_unlock(&mining_thr_lock); |
|
|
|
cgpu = thr->cgpu; |
|
|
|
cgpu = thr->cgpu; |
|
|
|
if (cgpu->drv->drv != DRIVER_OPENCL) |
|
|
|
if (cgpu->drv->drv_id != DRIVER_OPENCL) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
if (dev_from_id(thr_id) != gpu) |
|
|
|
if (dev_from_id(thr_id) != gpu) |
|
|
|
continue; |
|
|
|
continue; |
|
|
@ -1188,7 +1188,7 @@ select_cgpu: |
|
|
|
thr = mining_thr[thr_id]; |
|
|
|
thr = mining_thr[thr_id]; |
|
|
|
mutex_unlock(&mining_thr_lock); |
|
|
|
mutex_unlock(&mining_thr_lock); |
|
|
|
cgpu = thr->cgpu; |
|
|
|
cgpu = thr->cgpu; |
|
|
|
if (cgpu->drv->drv != DRIVER_OPENCL) |
|
|
|
if (cgpu->drv->drv_id != DRIVER_OPENCL) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
if (dev_from_id(thr_id) != gpu) |
|
|
|
if (dev_from_id(thr_id) != gpu) |
|
|
|
continue; |
|
|
|
continue; |
|
|
@ -1227,7 +1227,7 @@ select_cgpu: |
|
|
|
thr = mining_thr[thr_id]; |
|
|
|
thr = mining_thr[thr_id]; |
|
|
|
mutex_unlock(&mining_thr_lock); |
|
|
|
mutex_unlock(&mining_thr_lock); |
|
|
|
cgpu = thr->cgpu; |
|
|
|
cgpu = thr->cgpu; |
|
|
|
if (cgpu->drv->drv != DRIVER_OPENCL) |
|
|
|
if (cgpu->drv->drv_id != DRIVER_OPENCL) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
if (dev_from_id(thr_id) != gpu) |
|
|
|
if (dev_from_id(thr_id) != gpu) |
|
|
|
continue; |
|
|
|
continue; |
|
|
@ -1574,7 +1574,7 @@ static void opencl_thread_shutdown(struct thr_info *thr) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
struct device_drv opencl_drv = { |
|
|
|
struct device_drv opencl_drv = { |
|
|
|
.drv = DRIVER_OPENCL, |
|
|
|
.drv_id = DRIVER_OPENCL, |
|
|
|
.dname = "opencl", |
|
|
|
.dname = "opencl", |
|
|
|
.name = "GPU", |
|
|
|
.name = "GPU", |
|
|
|
.drv_detect = opencl_detect, |
|
|
|
.drv_detect = opencl_detect, |
|
|
|