1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Fix typo which prevented BFI INT patch working on multi-GPUs.

This commit is contained in:
Con Kolivas 2011-06-26 08:49:50 +10:00
parent 30e38e2ef8
commit 06f3950658

2
ocl.c
View File

@ -425,7 +425,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
return NULL;
}
clState->program = clCreateProgramWithBinary(clState->context, 1, &devices[gpu], binary_sizes, (const unsigned char **)binaries, &status, NULL);
clState->program = clCreateProgramWithBinary(clState->context, 1, &devices[gpu], &binary_sizes[gpu], (const unsigned char **)&binaries[gpu], &status, NULL);
if(status != CL_SUCCESS)
{
applog(LOG_ERR, "Error: Loading Binary into cl_program (clCreateProgramWithBinary)");