Disabled minMaxIdx for 32FC1 since it occasionally fails on AMD devices (e.g. A10-6800K)

pull/3187/head
Alexander Karsakov 11 years ago
parent 0276cc90c2
commit f57a4bf87b
  1. 3
      modules/core/src/stat.cpp

@ -1446,7 +1446,8 @@ static bool ocl_minMaxIdx( InputArray _src, double* minVal, double* maxVal, int*
int type = _src.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type),
kercn = haveMask ? cn : std::min(4, ocl::predictOptimalVectorWidth(_src, _src2));
if (haveMask && dev.isAMD())
// disabled following modes since it occasionally fails on AMD devices (e.g. A10-6800K, sep. 2014)
if ((haveMask || type == CV_32FC1) && dev.isAMD())
return false;
CV_Assert( (cn == 1 && (!haveMask || _mask.type() == CV_8U)) ||

Loading…
Cancel
Save