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