imgproc(ipp): disable parallel GaussianBlur
authorAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 16 Apr 2018 10:29:14 +0000 (13:29 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 16 Apr 2018 10:31:52 +0000 (13:31 +0300)
modules/core/include/opencv2/core/private.hpp
modules/imgproc/src/smooth.cpp

index a212ac1..26d7c0f 100644 (file)
@@ -184,6 +184,8 @@ T* allocSingleton(size_t count) { return static_cast<T*>(fastMalloc(sizeof(T) *
 #define IPP_DISABLE_HAAR                1 // improper integration/results
 #define IPP_DISABLE_HOUGH               1 // improper integration/results
 
+#define IPP_DISABLE_GAUSSIANBLUR_PARALLEL 1 // not supported (2017u2 / 2017u3)
+
 // Temporary disabled named IPP region. Performance
 #define IPP_DISABLE_PERF_COPYMAKE       1 // performance variations
 #define IPP_DISABLE_PERF_LUT            1 // there are no performance benefits (PR #2653)
index c3da902..78c85d7 100644 (file)
@@ -4003,7 +4003,8 @@ static bool openvx_gaussianBlur(InputArray _src, OutputArray _dst, Size ksize,
 #endif
 
 #ifdef HAVE_IPP
-#if IPP_VERSION_X100 == 201702  // IW 2017u2 has bug which doesn't allow use of partial inMem with tiling
+// IW 2017u2 has bug which doesn't allow use of partial inMem with tiling
+#if IPP_DISABLE_GAUSSIANBLUR_PARALLEL
 #define IPP_GAUSSIANBLUR_PARALLEL 0
 #else
 #define IPP_GAUSSIANBLUR_PARALLEL 1