From 16bfdbd22a228b7d541a22c4c600a1bb48de37d4 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Mon, 24 Feb 2014 15:12:42 +0400 Subject: [PATCH] dump AMD Blas/Fft --- modules/ts/src/ocl_test.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/ts/src/ocl_test.cpp b/modules/ts/src/ocl_test.cpp index 994ae489ac..7da04f656f 100644 --- a/modules/ts/src/ocl_test.cpp +++ b/modules/ts/src/ocl_test.cpp @@ -94,6 +94,7 @@ static std::string bytesToStringRepr(size_t value) void dumpOpenCLDevice() { using namespace cv::ocl; + try { std::vector platforms; @@ -165,6 +166,14 @@ void dumpOpenCLDevice() const char* isUnifiedMemoryStr = device.hostUnifiedMemory() ? "Yes" : "No"; DUMP_MESSAGE_STDOUT(" Host unified memory = "<< isUnifiedMemoryStr); DUMP_PROPERTY_XML("cv_ocl_current_hostUnifiedMemory", device.hostUnifiedMemory()); + + const char* haveAmdBlasStr = haveAmdBlas() ? "Yes" : "No"; + DUMP_MESSAGE_STDOUT(" Has AMD Blas = "<< haveAmdBlasStr); + DUMP_PROPERTY_XML("cv_ocl_current_AmdBlas", haveAmdBlas()); + + const char* haveAmdFftStr = haveAmdFft() ? "Yes" : "No"; + DUMP_MESSAGE_STDOUT(" Has AMD Fft = "<< haveAmdFftStr); + DUMP_PROPERTY_XML("cv_ocl_current_AmdFft", haveAmdFft()); } catch (...) {