From 06f39506582ca466099146e44f24afacd935d006 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 26 Jun 2011 08:49:50 +1000 Subject: [PATCH] Fix typo which prevented BFI INT patch working on multi-GPUs. --- ocl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocl.c b/ocl.c index bb493756..65a1d575 100644 --- a/ocl.c +++ b/ocl.c @@ -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)");