summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-08-23 16:46:40 +0200
committerDenis Davydov <davydden@gmail.com>2016-08-23 16:46:40 +0200
commit6500ac80e4016d540414e131a634e96ac66977e7 (patch)
tree6ace57c7a2ace44e296770fe68f3cf1602f29718 /var
parent7eb386e55e2e69c968369505ab51b073fb23bdec (diff)
downloadspack-6500ac80e4016d540414e131a634e96ac66977e7.tar.gz
spack-6500ac80e4016d540414e131a634e96ac66977e7.tar.bz2
spack-6500ac80e4016d540414e131a634e96ac66977e7.tar.xz
spack-6500ac80e4016d540414e131a634e96ac66977e7.zip
nwchem: fix lapack detection
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/nwchem/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nwchem/package.py b/var/spack/repos/builtin/packages/nwchem/package.py
index 16e575d576..3e5d37145d 100644
--- a/var/spack/repos/builtin/packages/nwchem/package.py
+++ b/var/spack/repos/builtin/packages/nwchem/package.py
@@ -75,6 +75,8 @@ class Nwchem(Package):
'BLASOPT=%s %s' % (
to_link_flags(spec['lapack'].lapack_shared_lib),
to_link_flags(spec['blas'].blas_shared_lib)),
+ 'BLAS_LIB=%s' % to_link_flags(spec['blas'].blas_shared_lib),
+ 'LAPACK_LIB=%s' % to_link_flags(spec['lapack'].lapack_shared_lib),
'USE_SCALAPACK=y',
'SCALAPACK=%s' % spec['scalapack'].fc_link,
'NWCHEM_MODULES=all',
@@ -90,11 +92,13 @@ class Nwchem(Package):
args.extend([
'USE_64TO32=y',
'BLAS_SIZE=4',
+ 'LAPACK_SIZE=4',
'SCALAPACK_SIZE=4'
])
else:
args.extend([
'BLAS_SIZE=8',
+ 'LAPACK_SIZE=8'
'SCALAPACK_SIZE=8'
])