do not dump OpenCL info if it is disabled
This commit is contained in:
parent
c10f1851cb
commit
4800a34be3
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user