Commit ac4ab6afdc08767e5ecec1a6d0e0aabfbc996232

Con Kolivas 2011-06-25T12:32:30

Fix mutli-gpu initialisation when BFI_INT patching.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/ocl.c b/ocl.c
index 108d6c7..b1fe741 100644
--- a/ocl.c
+++ b/ocl.c
@@ -424,7 +424,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
 			return NULL;
 		}
 
-		clState->program = clCreateProgramWithBinary(clState->context, numDevices, &devices[gpu], binary_sizes, (const unsigned char **)binaries, &status, NULL);
+		clState->program = clCreateProgramWithBinary(clState->context, 1, &devices[gpu], binary_sizes, (const unsigned char **)binaries, &status, NULL);
 		if(status != CL_SUCCESS) 
 		{   
 			applog(LOG_ERR, "Error: Loading Binary into cl_program (clCreateProgramWithBinary)");