mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 04:52:53 +08:00
ts: dump OpenCL device extensions
This commit is contained in:
parent
169add5aa6
commit
9e381d0782
@ -181,6 +181,23 @@ void dumpOpenCLDevice()
|
|||||||
DUMP_MESSAGE_STDOUT(" Host unified memory = "<< isUnifiedMemoryStr);
|
DUMP_MESSAGE_STDOUT(" Host unified memory = "<< isUnifiedMemoryStr);
|
||||||
DUMP_PROPERTY_XML("cv_ocl_current_hostUnifiedMemory", device.hostUnifiedMemory());
|
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";
|
const char* haveAmdBlasStr = haveAmdBlas() ? "Yes" : "No";
|
||||||
DUMP_MESSAGE_STDOUT(" Has AMD Blas = "<< haveAmdBlasStr);
|
DUMP_MESSAGE_STDOUT(" Has AMD Blas = "<< haveAmdBlasStr);
|
||||||
DUMP_PROPERTY_XML("cv_ocl_current_AmdBlas", haveAmdBlas());
|
DUMP_PROPERTY_XML("cv_ocl_current_AmdBlas", haveAmdBlas());
|
||||||
|
Loading…
Reference in New Issue
Block a user