summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatish Balay <balay@mcs.anl.gov>2019-04-16 08:52:48 -0500
committerGitHub <noreply@github.com>2019-04-16 08:52:48 -0500
commitc25d162b3c6a9f880b52608ddde01d24a125f544 (patch)
tree4b3c3b30897847d1428b1f45771653fc22796d73
parentdbfa928cdb0ec00e07d9d22d0eabb7c2a9452626 (diff)
downloadspack-c25d162b3c6a9f880b52608ddde01d24a125f544.tar.gz
spack-c25d162b3c6a9f880b52608ddde01d24a125f544.tar.bz2
spack-c25d162b3c6a9f880b52608ddde01d24a125f544.tar.xz
spack-c25d162b3c6a9f880b52608ddde01d24a125f544.zip
superlu-dist: fix issue with adding system blas/lapack - when MKL is explicitly specified (#11187)
Version 6 added dependency on LAPACK - so additional -DTPL_LAPACK_LIBRARIES option is required Ref: https://github.com/xiaoyeli/superlu_dist/issues/36 Ref: https://github.com/spack/spack/issues/10173
-rw-r--r--var/spack/repos/builtin/packages/superlu-dist/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/superlu-dist/package.py b/var/spack/repos/builtin/packages/superlu-dist/package.py
index 28a9b5548e..c5764a3cb5 100644
--- a/var/spack/repos/builtin/packages/superlu-dist/package.py
+++ b/var/spack/repos/builtin/packages/superlu-dist/package.py
@@ -39,12 +39,12 @@ class SuperluDist(CMakePackage):
def cmake_args(self):
spec = self.spec
- lapack_blas = spec['lapack'].libs + spec['blas'].libs
args = [
'-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc,
'-DCMAKE_CXX_COMPILER=%s' % spec['mpi'].mpicxx,
'-DCMAKE_INSTALL_LIBDIR:STRING=%s' % self.prefix.lib,
- '-DTPL_BLAS_LIBRARIES=%s' % lapack_blas.ld_flags,
+ '-DTPL_BLAS_LIBRARIES=%s' % spec['blas'].libs.joined(";"),
+ '-DTPL_LAPACK_LIBRARIES=%s' % spec['lapack'].libs.joined(";"),
'-DUSE_XSDK_DEFAULTS=YES',
'-DTPL_PARMETIS_LIBRARIES=%s' % spec['parmetis'].libs.ld_flags +
';' + spec['metis'].libs.ld_flags,