Merge pull request #1866 from ilya-lavrenov:ocl_fix2

This commit is contained in:
Andrey Pavlenko
2013-11-26 23:27:48 +04:00
committed by OpenCV Buildbot
6 changed files with 109 additions and 88 deletions

View File

@@ -2347,7 +2347,6 @@ struct Program::Impl
void** deviceList = deviceListBuf;
for( i = 0; i < n; i++ )
deviceList[i] = ctx.device(i).ptr();
printf("Building the OpenCL program ...\n");
retval = clBuildProgram(handle, n,
(const cl_device_id*)deviceList,
buildflags.c_str(), 0, 0);