ocl: change processing of OpenCL failures

disable "unwanted" messages
This commit is contained in:
Alexander Alekhin
2014-11-05 18:41:39 +03:00
parent 91a8ea5e60
commit 4eb16122c0
2 changed files with 14 additions and 5 deletions

View File

@@ -128,6 +128,9 @@ void dumpOpenCLDevice()
}
const Device& device = Device::getDefault();
if (!device.available())
CV_ErrorNoReturn(CV_OpenCLInitError, "OpenCL device is not available");
DUMP_MESSAGE_STDOUT("Current OpenCL device: ");
#if 0