do not dump OpenCL info if it is disabled

This commit is contained in:
Vladislav Vinogradov 2015-02-27 12:52:44 +03:00
parent c10f1851cb
commit 4800a34be3

View File

@ -98,6 +98,13 @@ void dumpOpenCLDevice()
try
{
if (!useOpenCL())
{
DUMP_MESSAGE_STDOUT("OpenCL is disabled");
DUMP_PROPERTY_XML("cv_ocl", "disabled");
return;
}
std::vector<PlatformInfo> platforms;
cv::ocl::getPlatfomsInfo(platforms);
if (platforms.size() > 0)