From f57a4bf87bb0f75de094090e05a677dee8f6bf78 Mon Sep 17 00:00:00 2001 From: Alexander Karsakov Date: Wed, 3 Sep 2014 11:40:20 +0400 Subject: [PATCH] Disabled minMaxIdx for 32FC1 since it occasionally fails on AMD devices (e.g. A10-6800K) --- modules/core/src/stat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/core/src/stat.cpp b/modules/core/src/stat.cpp index 2f614afe09..737267182c 100644 --- a/modules/core/src/stat.cpp +++ b/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)) ||