mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-15 00:59:59 +00:00
Go to kernel build should we fail to clCreateProgramWithBinary instead of failing on that device.
Should fix the windows problems with devices not initialising.
This commit is contained in:
parent
5976f6b32f
commit
fb0c580b62
8
ocl.c
8
ocl.c
@ -437,14 +437,14 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
|
|||||||
fclose(binaryfile);
|
fclose(binaryfile);
|
||||||
goto build;
|
goto build;
|
||||||
}
|
}
|
||||||
fclose(binaryfile);
|
|
||||||
|
|
||||||
clState->program = clCreateProgramWithBinary(clState->context, 1, &devices[gpu], &binary_sizes[gpu], (const unsigned char **)&binaries[gpu], &status, NULL);
|
clState->program = clCreateProgramWithBinary(clState->context, 1, &devices[gpu], &binary_sizes[gpu], (const unsigned char **)&binaries[gpu], &status, NULL);
|
||||||
if (status != CL_SUCCESS)
|
if (status != CL_SUCCESS) {
|
||||||
{
|
|
||||||
applog(LOG_ERR, "Error: Loading Binary into cl_program (clCreateProgramWithBinary)");
|
applog(LOG_ERR, "Error: Loading Binary into cl_program (clCreateProgramWithBinary)");
|
||||||
return NULL;
|
fclose(binaryfile);
|
||||||
|
goto build;
|
||||||
}
|
}
|
||||||
|
fclose(binaryfile);
|
||||||
if (opt_debug)
|
if (opt_debug)
|
||||||
applog(LOG_DEBUG, "Loaded binary image %s", binaryfilename);
|
applog(LOG_DEBUG, "Loaded binary image %s", binaryfilename);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user