summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSatish Balay <balay@mcs.anl.gov>2018-06-24 18:38:44 +0530
committerAdam J. Stewart <ajstewart426@gmail.com>2018-06-24 08:08:44 -0500
commitf6140375e9433cd4a5bf53d8efec6ac5eee658f3 (patch)
tree811cef026de18aaca993b7262ec81217df65f66b /var
parent1e92721ab53eb2476f672c1515b68b3fc6229415 (diff)
downloadspack-f6140375e9433cd4a5bf53d8efec6ac5eee658f3.tar.gz
spack-f6140375e9433cd4a5bf53d8efec6ac5eee658f3.tar.bz2
spack-f6140375e9433cd4a5bf53d8efec6ac5eee658f3.tar.xz
spack-f6140375e9433cd4a5bf53d8efec6ac5eee658f3.zip
xsdk: update xsdk@develop to use plasma@develop (#8555)
plasma@develop has another flag 'DHAVE_MKL' that needs to be disabled [for non-mkl build] add dependency on gcc-6.0 add in new dependency on readline plasma: requires both LIBS in make.inc and command line? If cmd line is missing -some internal values from plasma makefile gets used - causing link errors [on Mac] tools/lua-5.3.4/src/Makefile: $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -lreadline" if make.inc is missing - I get: /usr/bin/ld: cannot find -lmkl_intel_lp64 /usr/bin/ld: cannot find -lmkl_sequential /usr/bin/ld: cannot find -lmkl_core collect2: error: ld returned 1 exit status Also add a new dependency -ldl
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/plasma/package.py20
-rw-r--r--var/spack/repos/builtin/packages/xsdk/package.py2
2 files changed, 15 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/plasma/package.py b/var/spack/repos/builtin/packages/plasma/package.py
index 4565350303..29afcef8ac 100644
--- a/var/spack/repos/builtin/packages/plasma/package.py
+++ b/var/spack/repos/builtin/packages/plasma/package.py
@@ -31,6 +31,7 @@ class Plasma(MakefilePackage):
depends_on("blas")
depends_on("lapack")
+ depends_on("readline", when='@17.2:')
conflicts("atlas") # does not have LAPACKE interface
@@ -44,7 +45,9 @@ class Plasma(MakefilePackage):
conflicts("veclibfort")
# only GCC 4.9+ and higher have sufficient support for OpenMP 4+ tasks+deps
- conflicts("%gcc@:4.8.99")
+ conflicts("%gcc@:4.8.99", when='@:17.1')
+ # only GCC 6.0+ and higher have for OpenMP 4+ Clause "priority"
+ conflicts("%gcc@:5.99", when='@17.2:')
conflicts("%cce")
conflicts("%clang")
@@ -77,6 +80,7 @@ class Plasma(MakefilePackage):
if "^mkl" not in spec:
make_inc.filter("-DPLASMA_WITH_MKL", "") # not using MKL
+ make_inc.filter("-DHAVE_MKL", "") # not using MKL
header_flags = ""
# accumulate CPP flags for headers: <cblas.h> and <lapacke.h>
@@ -94,8 +98,11 @@ class Plasma(MakefilePackage):
# make sure CC variable comes from build environment
make_inc.filter("CC *[?]*= * .*cc", "")
- make_inc.filter("LIBS *[?]*= * .*", "LIBS = " +
- self.getblaslapacklibs().ld_flags)
+ libs = self.getblaslapacklibs().ld_flags
+ if 'readline' in self.spec:
+ libs += ' ' + self.spec['readline'].libs.ld_flags
+ libs += ' ' + find_system_libraries(['libdl']).ld_flags
+ make_inc.filter("LIBS *[?]*= * .*", "LIBS = " + libs)
@property
def build_targets(self):
@@ -107,7 +114,8 @@ class Plasma(MakefilePackage):
if "^mkl" in self.spec:
targets.append("MKLROOT = {0}".format(env["MKLROOT"]))
- targets.append("LIBS = {0}".format(
- self.getblaslapacklibs().ld_flags))
-
+ targets.append("LIBS = {0} {1} {2}".format(
+ self.getblaslapacklibs().ld_flags,
+ self.spec['readline'].libs.ld_flags,
+ find_system_libraries(['libdl']).ld_flags))
return targets
diff --git a/var/spack/repos/builtin/packages/xsdk/package.py b/var/spack/repos/builtin/packages/xsdk/package.py
index cb8178ce74..7414c12c49 100644
--- a/var/spack/repos/builtin/packages/xsdk/package.py
+++ b/var/spack/repos/builtin/packages/xsdk/package.py
@@ -82,7 +82,7 @@ class Xsdk(Package):
depends_on('sundials@3.1.0~int64+hypre', when='@0.3.0')
depends_on('sundials@3.1.0~int64+hypre', when='@develop')
- depends_on('plasma@17.1', when='@develop %gcc@4.9:')
+ depends_on('plasma@17.2:', when='@develop %gcc@6.0:')
depends_on('magma@2.2.0', when='@0.3.0 +cuda')
depends_on('magma@2.2.0', when='@develop +cuda')