|
|
|
@ -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; |
|
|
|
@ -979,12 +988,6 @@ namespace cv |
|
|
|
|
return impl->double_support == 1; |
|
|
|
|
case CL_UNIFIED_MEM: |
|
|
|
|
return impl->unified_memory == 1; |
|
|
|
|
case CL_CPU: |
|
|
|
|
cl_device_type devicetype; |
|
|
|
|
clGetDeviceInfo(impl->devices[impl->devnum],
|
|
|
|
|
CL_DEVICE_TYPE, sizeof(cl_device_type),
|
|
|
|
|
&devicetype, NULL); |
|
|
|
|
return devicetype == CVCL_DEVICE_TYPE_CPU; |
|
|
|
|
default: |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|