From 0168025c1c5fbd86f4c3f824792aafb021373799 Mon Sep 17 00:00:00 2001 From: Satish Balay Date: Fri, 13 Oct 2017 22:22:44 -0500 Subject: 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 --- var/spack/repos/builtin/packages/superlu-dist/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'var') 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), -- cgit v1.2.3-70-g09d2