add comment with more information about the workaround on ppc64le

This commit is contained in:
Sérgio M. Basto 2022-02-13 20:06:05 +00:00
parent 10a0fa3a19
commit a17785dfcd
1 changed files with 3 additions and 0 deletions

View File

@ -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