From a17785dfcdeefcc33858af6fecd18f563b71e40a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Sun, 13 Feb 2022 20:06:05 +0000 Subject: [PATCH] add comment with more information about the workaround on ppc64le --- opencv.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opencv.spec b/opencv.spec index ce4512b..0522448 100644 --- a/opencv.spec +++ b/opencv.spec @@ -270,6 +270,9 @@ install -pm 0644 %{SOURCE4} .cache/ade/ %ifarch ppc64le # Disable some altivec vectorization optimization on ppc64le (bug 2051193) +# Workaround is to force defining CV_FORCE_SIMD128_CPP on ppc64le so as NOT to use intrin_vsx.hpp . +# https://github.com/opencv/opencv/issues/21465 +# https://github.com/opencv/opencv/issues/19020 sed -i modules/core/include/opencv2/core/hal/intrin.hpp \ -e '\@ifdef CV_FORCE_SIMD128_CPP@i #define CV_FORCE_SIMD128_CPP' %endif