Enabled SSE2 on x86_64.
This commit is contained in:
parent
506382ec51
commit
2d89aca42b
15
fftw.spec
15
fftw.spec
@ -1,6 +1,6 @@
|
|||||||
Name: fftw
|
Name: fftw
|
||||||
Version: 3.3.3
|
Version: 3.3.3
|
||||||
Release: 1%{?dist}
|
Release: 2%{?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+
|
||||||
@ -149,8 +149,9 @@ export F77=gfortran
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
BASEFLAGS="--enable-shared --disable-dependency-tracking --enable-threads"
|
BASEFLAGS="--enable-shared --disable-dependency-tracking --enable-threads"
|
||||||
|
|
||||||
%if %{openmp}
|
%if %{openmp}
|
||||||
BASEFLAGS="$BASEFLAGS --enable-openmp"
|
BASEFLAGS+=" --enable-openmp"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Precisions to build
|
# Precisions to build
|
||||||
@ -165,6 +166,13 @@ 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
|
||||||
|
# x86_64 always has SSE2, enable it for single and double
|
||||||
|
for((i=0;i<2;i++)); do
|
||||||
|
prec_flags[i]+=" --enable-sse2"
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
# Loop over precisions
|
# Loop over precisions
|
||||||
%if %{quad}
|
%if %{quad}
|
||||||
for((iprec=0;iprec<4;iprec++))
|
for((iprec=0;iprec<4;iprec++))
|
||||||
@ -292,6 +300,9 @@ fi
|
|||||||
%{_libdir}/libfftw3*.a
|
%{_libdir}/libfftw3*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 18 2012 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.3.3-2
|
||||||
|
- Enable SSE2 on x86_64.
|
||||||
|
|
||||||
* Mon Nov 26 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 3.3.3-1
|
* Mon Nov 26 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 3.3.3-1
|
||||||
- Update to 3.3.3.
|
- Update to 3.3.3.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user