ts: dump OpenCL device extensions

This commit is contained in:
Alexander Alekhin 2017-09-07 14:22:48 +03:00 committed by Alexander Alekhin
parent 169add5aa6
commit 9e381d0782

View File

@ -181,6 +181,23 @@ void dumpOpenCLDevice()
DUMP_MESSAGE_STDOUT(" Host unified memory = "<< isUnifiedMemoryStr);
DUMP_PROPERTY_XML("cv_ocl_current_hostUnifiedMemory", device.hostUnifiedMemory());
DUMP_MESSAGE_STDOUT(" Device extensions:");
String extensionsStr = device.extensions();
size_t pos = 0;
while (pos < extensionsStr.size())
{
size_t pos2 = extensionsStr.find(' ', pos);
if (pos2 == String::npos)
pos2 = extensionsStr.size();
if (pos2 > pos)
{
String extensionName = extensionsStr.substr(pos, pos2 - pos);
DUMP_MESSAGE_STDOUT(" " << extensionName);
}
pos = pos2 + 1;
}
DUMP_PROPERTY_XML("cv_ocl_current_extensions", extensionsStr.c_str());
const char* haveAmdBlasStr = haveAmdBlas() ? "Yes" : "No";
DUMP_MESSAGE_STDOUT(" Has AMD Blas = "<< haveAmdBlasStr);
DUMP_PROPERTY_XML("cv_ocl_current_AmdBlas", haveAmdBlas());