mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
ocl: change processing of OpenCL failures
disable "unwanted" messages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user