From 1e5694e0828f97ce07a60d96e13ca838a664a883 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Mon, 12 May 2014 12:45:52 +0400 Subject: [PATCH] heuristic for Intel --- modules/core/src/ocl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/core/src/ocl.cpp b/modules/core/src/ocl.cpp index e3cfd8e7c..ec0efe554 100644 --- a/modules/core/src/ocl.cpp +++ b/modules/core/src/ocl.cpp @@ -4414,6 +4414,12 @@ int predictOptimalVectorWidth(InputArray src1, InputArray src2, InputArray src3, d.preferredVectorWidthShort(), d.preferredVectorWidthShort(), d.preferredVectorWidthInt(), d.preferredVectorWidthFloat(), d.preferredVectorWidthDouble(), -1 }, width = vectorWidths[depth]; + if (d.isIntel()) + { + // it's heuristic + int vectorWidthsIntel[] = { 16, 16, 8, 8, 1, 1, 1, -1 }; + width = vectorWidthsIntel[depth]; + } if (ssize.width * cn < width || width <= 0) return 1;