diff options
author | Gregory Lee <lee218@llnl.gov> | 2017-01-31 09:48:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-31 09:48:47 -0800 |
commit | 7d279e06a0ada26198f2e69346253ece8b8660d1 (patch) | |
tree | a1128bc61dab337ea552144aaec7ec589f0c82e1 /var | |
parent | 2ac0bcfcb059914cb79b1a40e261f1f503b4f52d (diff) | |
parent | 617786707f8bbc3a45d5f06a47ba764d9b498e4a (diff) | |
download | spack-7d279e06a0ada26198f2e69346253ece8b8660d1.tar.gz spack-7d279e06a0ada26198f2e69346253ece8b8660d1.tar.bz2 spack-7d279e06a0ada26198f2e69346253ece8b8660d1.tar.xz spack-7d279e06a0ada26198f2e69346253ece8b8660d1.zip |
Merge pull request #2964 from Zzzoom/fftw_add_sse2
FFTW: Add SSE2 support to x86_64 target
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/fftw/package.py | 10 |
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") |