ocl: fix mac and superres test

This commit is contained in:
Alexander Alekhin
2014-07-01 20:02:02 +04:00
committed by Ilya Lavrenov
parent 43e4946cca
commit b1ac35e14a
2 changed files with 21 additions and 0 deletions

View File

@@ -278,6 +278,16 @@ TEST_F(SuperResolution, BTVL1_GPU)
#if defined(HAVE_OPENCV_OCL) && defined(HAVE_OPENCL)
TEST_F(SuperResolution, BTVL1_OCL)
{
try
{
const cv::ocl::DeviceInfo& dev = cv::ocl::Context::getContext()->getDeviceInfo();
std::cout << "Device name:" << dev.deviceName << std::endl;
}
catch (...)
{
std::cout << "Device name: N/A" << std::endl;
return; // skip test
}
RunTest(cv::superres::createSuperResolution_BTVL1_OCL());
}
#endif