From 617786707f8bbc3a45d5f06a47ba764d9b498e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Bederi=C3=A1n?= Date: Mon, 30 Jan 2017 18:17:36 -0300 Subject: [PATCH] FFTW: Add SSE2 support to x86_64 target --- var/spack/repos/builtin/packages/fftw/package.py | 10 ++++++++-- 1 file 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 @@ def install(self, spec, prefix): 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")