superlu_dist: fix build with xl compilers (#13702)

* superlu_dist: fix build with xl compilers

* fix link error  ../SRC/libsuperlu_dist.so.6.1.1: undefined reference to `ztrtri_'

* Fixed the ordering of the spec on the xl-611 patch.

* fix flake8 error
This commit is contained in:
Satish Balay 2019-11-13 15:03:24 -06:00 committed by Adam J. Stewart
parent 56de86dda6
commit 4d37db02da
2 changed files with 33 additions and 0 deletions

View File

@ -40,6 +40,9 @@ class SuperluDist(CMakePackage):
depends_on('parmetis')
depends_on('metis@5:')
patch('xl-611.patch', when='@:6.1.1 %xl')
patch('xl-611.patch', when='@:6.1.1 %xl_r')
def cmake_args(self):
spec = self.spec
args = [
@ -54,6 +57,10 @@ def cmake_args(self):
'-DTPL_PARMETIS_INCLUDE_DIRS=%s' % spec['parmetis'].prefix.include
]
if (spec.satisfies('%xl') or spec.satisfies('%xl_r')) and \
spec.satisfies('@:6.1.1'):
args.append('-DCMAKE_C_FLAGS=-DNoChange')
if '+int64' in spec:
args.append('-DXSDK_INDEX_SIZE=64')
else:

View File

@ -0,0 +1,26 @@
commit e51132dbd022139933678b3a751a9b3148fafd19
Author: Satish Balay <balay@mcs.anl.gov>
Date: Tue Nov 12 16:07:08 2019 -0600
add ztrtri_ mapping for xlf
diff --git a/SRC/Cnames.h b/SRC/Cnames.h
index 792f514..ebef619 100644
--- a/SRC/Cnames.h
+++ b/SRC/Cnames.h
@@ -179,6 +179,7 @@ at the top-level directory.
#define zher2_ ZHER2
#define zgeru_ ZGERU
+#define ztrtri_ ZTRTRI
/*
#define mc64id_dist MC64ID_DIST
#define mc64ad_dist MC64AD_DIST
@@ -307,6 +308,7 @@ at the top-level directory.
#define zher2_ zher2
#define zgeru_ zgeru
+#define ztrtri_ ztrtri
/*
#define mc64id_dist mc64id_dist
#define mc64ad_dist mc64ad_dist