Skip to content

Commit

Permalink
cp2k and dependecies : fixed blas-lapack related statements in packag…
Browse files Browse the repository at this point in the history
…e.py
  • Loading branch information
alalazo committed Sep 21, 2016
1 parent ff8fb7b commit be14686
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions var/spack/repos/builtin/packages/atlas/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ def install(self, spec, prefix):

@property
def blas_libs(self):
# libsatlas.[so,dylib,dll ] contains all serial APIs (serial lapack,
# serial BLAS), and all ATLAS symbols needed to support them. Whereas
# libtatlas.[so,dylib,dll ] is parallel (multithreaded) version.
is_threaded = '+pthread' in self.spec
if '+shared' in self.spec:
to_find = ['libtatlas'] if is_threaded else ['libsatlas']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def install(self, spec, prefix):
]

# Make sure we use Spack's Lapack:
blas = spec['blas'].blas_libs
lapack = spec['lapack'].lapack_libs
options.extend([
'-DLAPACK_FOUND=true',
Expand Down
4 changes: 2 additions & 2 deletions var/spack/repos/builtin/packages/pexsi/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def install(self, spec, prefix):
'@PARMETIS_PREFIX': self.spec['parmetis'].prefix,
'@LAPACK_PREFIX': self.spec['lapack'].prefix,
'@BLAS_PREFIX': self.spec['blas'].prefix,
'@LAPACK_LIBS': self.spec['lapack'].lapack_shared_lib,
'@BLAS_LIBS': self.spec['lapack'].blas_shared_lib,
'@LAPACK_LIBS': self.spec['lapack'].lapack_libs.joined(),
'@BLAS_LIBS': self.spec['lapack'].blas_libs.joined(),
'@STDCXX_LIB': ' '.join(self.compiler.stdcxx_libs)
}

Expand Down
7 changes: 3 additions & 4 deletions var/spack/repos/builtin/packages/wannier90/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,12 @@ class Wannier90(Package):

def install(self, spec, prefix):

lapack = self.spec['lapack'].lapack_libs
blas = self.spec['blas'].blas_libs
substitutions = {
'@F90': spack_fc,
'@MPIF90': self.spec['mpi'].mpifc,
'@LIBS': ' '.join([
self.spec['lapack'].lapack_shared_lib,
self.spec['lapack'].blas_shared_lib
])
'@LIBS': (lapack + blas).joined()
}
#######
# TODO : this part is replicated in PEXSI
Expand Down

0 comments on commit be14686

Please sign in to comment.