از تابع getBuildInformation استفاده کنید اطلاعات کلی بیلد نسخه ی در حال استفاده را در احتیارتون قرار میده برای Opencl هم از getPlatformInfo در namespace ocl استفاده کنید.
cout << getBuildInformation();
// INFO ABOUT OpenCL
cout << "OpenCL: " << endl;
std::vector<ocl::PlatformInfo> platform_info;
cv::ocl::getPlatfomsInfo(platform_info);
for (size_t i = 0; i < platform_info.size(); i++)
{
cout
<< "\tName: " << platform_info[i].name() << endl
<< "\tVendor: " << platform_info[i].vendor() << endl
<< "\tVersion: " << platform_info[i].version() << endl
<< "\tDevice Number: " << platform_info[i].deviceNumber() << endl
<< endl;
}