mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
kernel: fix alexkar* kernel crashes due to missing case in switch.
Fixes https://github.com/veox/sgminer/issues/27
This commit is contained in:
parent
2f1fafedb9
commit
35a23942b1
@ -1256,14 +1256,15 @@ static bool opencl_thread_init(struct thr_info *thr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (clState->chosen_kernel) {
|
switch (clState->chosen_kernel) {
|
||||||
case KL_CKOLIVAS:
|
case KL_ALEXKARNEW:
|
||||||
thrdata->queue_kernel_parameters = &queue_scrypt_kernel;
|
case KL_ALEXKAROLD:
|
||||||
break;
|
case KL_CKOLIVAS:
|
||||||
case KL_ZUIKKIS:
|
case KL_ZUIKKIS:
|
||||||
thrdata->queue_kernel_parameters = &queue_scrypt_kernel;
|
thrdata->queue_kernel_parameters = &queue_scrypt_kernel;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
applog(LOG_ERR, "Failed to choose kernel in opencl_thread_init");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
thrdata->res = calloc(buffersize, 1);
|
thrdata->res = calloc(buffersize, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user