summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSatish Balay <balay@mcs.anl.gov>2017-10-13 22:22:44 -0500
committerChristoph Junghans <christoph.junghans@gmail.com>2017-10-13 21:22:44 -0600
commit0168025c1c5fbd86f4c3f824792aafb021373799 (patch)
tree3b51db0be384448027d2b41d799fc535070be29f /var
parentf885c89fdc2ecf22af7e71468b1e65f48940c3ff (diff)
downloadspack-0168025c1c5fbd86f4c3f824792aafb021373799.tar.gz
spack-0168025c1c5fbd86f4c3f824792aafb021373799.tar.bz2
spack-0168025c1c5fbd86f4c3f824792aafb021373799.tar.xz
spack-0168025c1c5fbd86f4c3f824792aafb021373799.zip
superlu_dist: update to latest version 5.2.1 (#5762)
The interface to +int64 changed from -D_LONGINT to XSDK_INDEX_SIZE=64. This change uses the appropriate interface for for the given version
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/superlu-dist/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/superlu-dist/package.py b/var/spack/repos/builtin/packages/superlu-dist/package.py
index 681b08e67c..771122834d 100644
--- a/var/spack/repos/builtin/packages/superlu-dist/package.py
+++ b/var/spack/repos/builtin/packages/superlu-dist/package.py
@@ -35,6 +35,7 @@ class SuperluDist(Package):
version('develop', git='https://github.com/xiaoyeli/superlu_dist', tag='master')
version('xsdk-0.2.0', git='https://github.com/xiaoyeli/superlu_dist', tag='xsdk-0.2.0')
+ version('5.2.1', 'af857778ffeb04aea02aa4843e6e8e1d')
version('5.1.3', '3a9e88a8469aa7f319f0364364b8da35')
version('5.1.1', '12638c631733a27dcbd87110e9f9cb1e')
version('5.1.0', '6bb86e630bd4bd8650243aed8fd92eb9')
@@ -76,7 +77,9 @@ class SuperluDist(Package):
'' if '%pgi' in spec else '-std=c99',
spec['parmetis'].headers.cpp_flags,
spec['metis'].headers.cpp_flags,
- '-D_LONGINT' if '+int64' in spec else ''),
+ '-D_LONGINT' if '+int64' in spec and not
+ self.spec.satisfies('@5.2.0:') else ''),
+ 'XSDK_INDEX_SIZE = %s' % ('64' if '+int64' in spec else '32'),
'NOOPTS = %s -std=c99' % (
self.compiler.pic_flag),
'FORTRAN = {0}'.format(self.spec['mpi'].mpif77),