Merge pull request #742 from bitwangyaoyao:2.4_fix

This commit is contained in:
Andrey Kamaev
2013-04-11 11:33:45 +04:00
committed by OpenCV Buildbot
9 changed files with 543 additions and 630 deletions

View File

@@ -397,6 +397,15 @@ namespace cv
}
break;
case IS_CPU_DEVICE:
{
cl_device_type devicetype;
openCLSafeCall(clGetDeviceInfo(impl->devices[impl->devnum],
CL_DEVICE_TYPE, sizeof(cl_device_type),
&devicetype, NULL));
*(bool*)info = (devicetype == CVCL_DEVICE_TYPE_CPU);
}
break;
default:
CV_Error(-1, "Invalid device info type");
break;