Fix cray-libsci package to find correct libraries (#23501)
This commit is contained in:
parent
297f0e489a
commit
8d4c2d1c76
@ -14,6 +14,7 @@ class CrayLibsci(Package):
|
||||
has_code = False # Skip attempts to fetch source that is not available
|
||||
|
||||
version("20.06.1")
|
||||
version("20.03.1")
|
||||
version("19.06.1")
|
||||
version("18.12.1")
|
||||
version("18.11.1.2")
|
||||
@ -55,16 +56,19 @@ def blas_libs(self):
|
||||
shared = True if "+shared" in self.spec else False
|
||||
compiler = self.spec.compiler.name
|
||||
|
||||
lib = []
|
||||
if "+openmp" in self.spec and "+mpi" in self.spec:
|
||||
lib = "libsci_{0}_mpi_mp"
|
||||
lib = ["libsci_{0}_mpi_mp", "libsci_{0}_mp"]
|
||||
elif "+openmp" in self.spec:
|
||||
lib = "libsci_{0}_mp"
|
||||
lib = ["libsci_{0}_mp"]
|
||||
elif "+mpi" in self.spec:
|
||||
lib = "libsci_{0}_mpi"
|
||||
lib = ["libsci_{0}_mpi", "libsci_{0}"]
|
||||
else:
|
||||
lib = "libsci_{0}"
|
||||
lib = ["libsci_{0}"]
|
||||
|
||||
libname = lib.format(self.canonical_names[compiler].lower())
|
||||
libname = []
|
||||
for lib_fmt in lib:
|
||||
libname.append(lib_fmt.format(self.canonical_names[compiler].lower()))
|
||||
|
||||
return find_libraries(
|
||||
libname,
|
||||
|
Loading…
Reference in New Issue
Block a user