mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
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
|
||||
{
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user