summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorCarlos Bederián <bc@famaf.unc.edu.ar>2017-01-30 18:17:36 -0300
committerCarlos Bederián <bc@famaf.unc.edu.ar>2017-01-30 18:17:36 -0300
commit617786707f8bbc3a45d5f06a47ba764d9b498e4a (patch)
treea3e987ae1652aaf572525c6d4375b910a61d718f /var
parent75763bb8e38f7fbb2b855ace453d0c31ec542427 (diff)
downloadspack-617786707f8bbc3a45d5f06a47ba764d9b498e4a.tar.gz
spack-617786707f8bbc3a45d5f06a47ba764d9b498e4a.tar.bz2
spack-617786707f8bbc3a45d5f06a47ba764d9b498e4a.tar.xz
spack-617786707f8bbc3a45d5f06a47ba764d9b498e4a.zip
FFTW: Add SSE2 support to x86_64 target
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/fftw/package.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/fftw/package.py b/var/spack/repos/builtin/packages/fftw/package.py
index 838f6ff744..9b40d10fe0 100644
--- a/var/spack/repos/builtin/packages/fftw/package.py
+++ b/var/spack/repos/builtin/packages/fftw/package.py
@@ -89,14 +89,20 @@ class Fftw(Package):
autoreconf = which('autoreconf')
autoreconf('-ifv')
- configure(*options)
+ float_options = []
+ double_options = []
+ if 'x86_64' in spec.architecture:
+ float_options.append('--enable-sse2')
+ double_options.append('--enable-sse2')
+
+ configure(*(options + double_options))
make()
if self.run_tests:
make("check")
make("install")
if '+float' in spec:
- configure('--enable-float', *options)
+ configure('--enable-float', *(options + float_options))
make()
if self.run_tests:
make("check")