[fftw] Enable more hw acceleration.
Susi Lehtola
jussilehtola at fedoraproject.org
Tue Dec 18 13:25:10 UTC 2012
commit 077ae7a86e64900f04c063ac8cd3da46ca2d3bbe
Author: Jussi Lehtola <jussilehtola at fedoraproject.org>
Date: Tue Dec 18 15:25:05 2012 +0200
Enable more hw acceleration.
fftw.spec | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
---
diff --git a/fftw.spec b/fftw.spec
index c8cc140..8b3735f 100644
--- a/fftw.spec
+++ b/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 at 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 at fedoraproject.org> - 3.3.3-2
- Enable SSE2 on x86_64.
More information about the scm-commits
mailing list