Enable more hw acceleration.

This commit is contained in:
Jussi Lehtola 2012-12-18 15:25:05 +02:00
parent 2d89aca42b
commit 077ae7a86e

View File

@ -1,6 +1,6 @@
Name: fftw Name: fftw
Version: 3.3.3 Version: 3.3.3
Release: 2%{?dist} Release: 3%{?dist}
Summary: A Fast Fourier Transform library Summary: A Fast Fourier Transform library
Group: System Environment/Libraries Group: System Environment/Libraries
License: GPLv2+ License: GPLv2+
@ -166,13 +166,28 @@ prec_flags[1]=--enable-double
prec_flags[2]=--enable-long-double prec_flags[2]=--enable-long-double
prec_flags[3]=--enable-quad-precision prec_flags[3]=--enable-quad-precision
%ifarch x86_64 %ifarch %{x86} x86_64
# x86_64 always has SSE2, enable it for single and double # Enable SSE2 support for x86 and x86_64
# (no avx as it is claimed to drastically slower)
for((i=0;i<2;i++)); do for((i=0;i<2;i++)); do
prec_flags[i]+=" --enable-sse2" prec_flags[i]+=" --enable-sse2"
done done
%endif %endif
%ifarch arm
# Compile support for NEON instructions
for((i=0;i<2;i++)); do
prec_flags[i]+=" --enable-neon"
done
%endif
%ifarch ppc ppc64
# Compile support for Altivec instructions
for((i=0;i<2;i++)); do
prec_flags[i]+=" --enable-altivec"
done
%endif
# Loop over precisions # Loop over precisions
%if %{quad} %if %{quad}
for((iprec=0;iprec<4;iprec++)) for((iprec=0;iprec<4;iprec++))
@ -300,6 +315,10 @@ fi
%{_libdir}/libfftw3*.a %{_libdir}/libfftw3*.a
%changelog %changelog
* Tue Dec 18 2012 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.3.3-3
- After consultation with upstream, enable SSE2 also on x86, altivec on ppc
and ppc64 and NEON on arm.
* Tue Dec 18 2012 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.3.3-2 * Tue Dec 18 2012 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.3.3-2
- Enable SSE2 on x86_64. - Enable SSE2 on x86_64.