Commit 4800a34b authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

do not dump OpenCL info if it is disabled

parent c10f1851
...@@ -98,6 +98,13 @@ void dumpOpenCLDevice() ...@@ -98,6 +98,13 @@ void dumpOpenCLDevice()
try try
{ {
if (!useOpenCL())
{
DUMP_MESSAGE_STDOUT("OpenCL is disabled");
DUMP_PROPERTY_XML("cv_ocl", "disabled");
return;
}
std::vector<PlatformInfo> platforms; std::vector<PlatformInfo> platforms;
cv::ocl::getPlatfomsInfo(platforms); cv::ocl::getPlatfomsInfo(platforms);
if (platforms.size() > 0) if (platforms.size() > 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment