Disable some altivec vectorization optimization on ppc64le (bug 2051193)

This commit is contained in:
Mamoru TASAKA 2022-02-13 22:42:00 +09:00
parent 9211c6b534
commit 10a0fa3a19

View File

@ -50,7 +50,7 @@ Name: opencv
Version: 4.5.5
%global javaver %(foo=%{version}; echo ${foo//./})
%global abiver %(foo=%{version}; echo ${foo:0:3})
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Collection of algorithms for computer vision
# This is normal three clause BSD.
License: BSD
@ -268,6 +268,11 @@ popd
mkdir -p .cache/ade
install -pm 0644 %{SOURCE4} .cache/ade/
%ifarch ppc64le
# Disable some altivec vectorization optimization on ppc64le (bug 2051193)
sed -i modules/core/include/opencv2/core/hal/intrin.hpp \
-e '\@ifdef CV_FORCE_SIMD128_CPP@i #define CV_FORCE_SIMD128_CPP'
%endif
%build
# enabled by default if libraries are presents at build time:
@ -483,6 +488,9 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
%{_libdir}/libopencv_xphoto.so.%{abiver}*
%changelog
* Sun Feb 13 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.5.5-4
- Disable some altivec vectorization optimization on ppc64le (bug 2051193)
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 4.5.5-3
- Rebuilt for java-17-openjdk as system jdk