summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2018-01-03 16:58:19 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2018-01-03 09:58:19 -0600
commite623bbb6794f86f298aef8b63e1d5d2331527e9f (patch)
tree1c63653fde269f9a26ac591420fb0ccc2f59ed5d
parent2ed914aa1bfe65fe798583c3149f2a58ec267843 (diff)
downloadspack-e623bbb6794f86f298aef8b63e1d5d2331527e9f.tar.gz
spack-e623bbb6794f86f298aef8b63e1d5d2331527e9f.tar.bz2
spack-e623bbb6794f86f298aef8b63e1d5d2331527e9f.tar.xz
spack-e623bbb6794f86f298aef8b63e1d5d2331527e9f.zip
suite-sparse: support 64bit BLAS (#6767)
* suite-sparse: support 64bit BLAS * use double quotes instead of escaped quotes
-rw-r--r--var/spack/repos/builtin/packages/suite-sparse/package.py6
1 files changed, 6 insertions, 0 deletions
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 @@ class SuiteSparse(Package):
'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