From e623bbb6794f86f298aef8b63e1d5d2331527e9f Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Wed, 3 Jan 2018 16:58:19 +0100 Subject: [PATCH] suite-sparse: support 64bit BLAS (#6767) * suite-sparse: support 64bit BLAS * use double quotes instead of escaped quotes --- var/spack/repos/builtin/packages/suite-sparse/package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/var/spack/repos/builtin/packages/suite-sparse/package.py b/var/spack/repos/builtin/packages/suite-sparse/package.py index acf1e732f8..fd93cd6ca7 100644 --- a/var/spack/repos/builtin/packages/suite-sparse/package.py +++ b/var/spack/repos/builtin/packages/suite-sparse/package.py @@ -99,6 +99,12 @@ def install(self, spec, prefix): 'LAPACK=%s' % spec['lapack'].libs.ld_flags, ] + # 64bit blas in UMFPACK: + if (spec.satisfies('^openblas+ilp64') or + spec.satisfies('^intel-mkl+ilp64') or + spec.satisfies('^intel-parallel-studio+mkl+ilp64')): + make_args.append('UMFPACK_CONFIG=-DLONGBLAS="long long"') + # SuiteSparse defaults to using '-fno-common -fexceptions' in # CFLAGS, but not all compilers use the same flags for these # optimizations