summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Rood <jon.rood@nrel.gov>2018-01-06 11:01:06 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2018-01-06 12:01:06 -0600
commit8813b3fbd383717e8ac4e11a2f67af00c958cb94 (patch)
tree3d8d7640f0360271eec0fdc6f9c51cc065d3e578
parent4cd9bdedd735ac82e4494abf5def3c031edd4698 (diff)
downloadspack-8813b3fbd383717e8ac4e11a2f67af00c958cb94.tar.gz
spack-8813b3fbd383717e8ac4e11a2f67af00c958cb94.tar.bz2
spack-8813b3fbd383717e8ac4e11a2f67af00c958cb94.tar.xz
spack-8813b3fbd383717e8ac4e11a2f67af00c958cb94.zip
Updating OpenFAST to use explicit lapack and blas libraries from Spack. (#6824)
* Updating OpenFAST to use explicit lapack and blas libraries from Spack. * Simplifying openfast blas lib logic and fixes flake8 errors. * Changing order of blas and lapack libs in openfast package.
-rw-r--r--var/spack/repos/builtin/packages/openfast/package.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/openfast/package.py b/var/spack/repos/builtin/packages/openfast/package.py
index cf37e24a81..687ca8c3b7 100644
--- a/var/spack/repos/builtin/packages/openfast/package.py
+++ b/var/spack/repos/builtin/packages/openfast/package.py
@@ -56,7 +56,7 @@ class Openfast(CMakePackage):
# Additional dependencies when compiling C++ library
depends_on('mpi', when='+cxx')
depends_on('yaml-cpp', when='+cxx')
- depends_on('hdf5+mpi+cxx', when='+cxx')
+ depends_on('hdf5+mpi+cxx+hl', when='+cxx')
depends_on('zlib', when='+cxx')
depends_on('libxml2', when='+cxx')
@@ -79,6 +79,13 @@ class Openfast(CMakePackage):
'ON' if '+cxx' in spec else 'OFF'),
])
+ # Make sure we use Spack's blas/lapack:
+ blas_libs = spec['lapack'].libs + spec['blas'].libs
+ options.extend([
+ '-DBLAS_LIBRARIES=%s' % blas_libs.joined(';'),
+ '-DLAPACK_LIBRARIES=%s' % blas_libs.joined(';')
+ ])
+
if '+cxx' in spec:
options.extend([
'-DMPI_CXX_COMPILER:PATH=%s' % spec['mpi'].mpicxx,