Enable more hw acceleration.
This commit is contained in:
parent
2d89aca42b
commit
077ae7a86e
25
fftw.spec
25
fftw.spec
@ -1,6 +1,6 @@
|
||||
Name: fftw
|
||||
Version: 3.3.3
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: A Fast Fourier Transform library
|
||||
Group: System Environment/Libraries
|
||||
License: GPLv2+
|
||||
@ -166,13 +166,28 @@ prec_flags[1]=--enable-double
|
||||
prec_flags[2]=--enable-long-double
|
||||
prec_flags[3]=--enable-quad-precision
|
||||
|
||||
%ifarch x86_64
|
||||
# x86_64 always has SSE2, enable it for single and double
|
||||
%ifarch %{x86} x86_64
|
||||
# Enable SSE2 support for x86 and x86_64
|
||||
# (no avx as it is claimed to drastically slower)
|
||||
for((i=0;i<2;i++)); do
|
||||
prec_flags[i]+=" --enable-sse2"
|
||||
done
|
||||
%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
|
||||
%if %{quad}
|
||||
for((iprec=0;iprec<4;iprec++))
|
||||
@ -300,6 +315,10 @@ fi
|
||||
%{_libdir}/libfftw3*.a
|
||||
|
||||
%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
|
||||
- Enable SSE2 on x86_64.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user