mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-24 05:24:23 +00:00
Fix kernel selection process and build error.
This commit is contained in:
parent
ec2dfeacc1
commit
196e8a0f76
4
ocl.c
4
ocl.c
@ -313,7 +313,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
find = strstr(devoclver, ocl10);
|
find = strstr(devoclver, ocl10);
|
||||||
if !(find)
|
if (!find)
|
||||||
clState->hasOpenCL11plus = true;
|
clState->hasOpenCL11plus = true;
|
||||||
|
|
||||||
status = clGetDeviceInfo(devices[gpu], CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT, sizeof(cl_uint), (void *)&clState->preferred_vwidth, NULL);
|
status = clGetDeviceInfo(devices[gpu], CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT, sizeof(cl_uint), (void *)&clState->preferred_vwidth, NULL);
|
||||||
@ -361,7 +361,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
|
|||||||
char filename[16];
|
char filename[16];
|
||||||
|
|
||||||
if (chosen_kernel == KL_NONE) {
|
if (chosen_kernel == KL_NONE) {
|
||||||
if (strstr(name, "Tahiti"))
|
if (!strstr(name, "Tahiti"))
|
||||||
chosen_kernel = KL_DIAKGCN;
|
chosen_kernel = KL_DIAKGCN;
|
||||||
else if (!clState->hasBitAlign)
|
else if (!clState->hasBitAlign)
|
||||||
chosen_kernel = KL_POCLBM;
|
chosen_kernel = KL_POCLBM;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user