summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorNichols A. Romero <naromero77@users.noreply.github.com>2020-06-24 09:30:00 -0500
committerGitHub <noreply@github.com>2020-06-24 16:30:00 +0200
commitec58f28c209d1ffef51424b5d1423aa219c143a4 (patch)
tree6996d93b0286437ad43a717a29367e3c4505cfdd /var
parent577a88880ed63b832bc2b463cf0c5d5e36acd2c0 (diff)
downloadspack-ec58f28c209d1ffef51424b5d1423aa219c143a4.tar.gz
spack-ec58f28c209d1ffef51424b5d1423aa219c143a4.tar.bz2
spack-ec58f28c209d1ffef51424b5d1423aa219c143a4.tar.xz
spack-ec58f28c209d1ffef51424b5d1423aa219c143a4.zip
quantum-espresso: fix for scalapack with openmpi (#17179)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/quantum-espresso/package.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/quantum-espresso/package.py b/var/spack/repos/builtin/packages/quantum-espresso/package.py
index 35454ae3ef..2fe01f864f 100644
--- a/var/spack/repos/builtin/packages/quantum-espresso/package.py
+++ b/var/spack/repos/builtin/packages/quantum-espresso/package.py
@@ -307,7 +307,13 @@ class QuantumEspresso(Package):
options.append('BLAS_LIBS={0}'.format(lapack_blas.ld_flags))
if '+scalapack' in spec:
- scalapack_option = 'intel' if '^mkl' in spec else 'yes'
+ if '^mkl' in spec:
+ if '^openmpi' in spec:
+ scalapack_option = 'yes'
+ else: # mpich, intel-mpi
+ scalapack_option = 'intel'
+ else:
+ scalapack_option = 'yes'
options.append('--with-scalapack={0}'.format(scalapack_option))
if '+elpa' in spec: