diff options
author | Nichols A. Romero <naromero77@users.noreply.github.com> | 2020-06-24 09:30:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 16:30:00 +0200 |
commit | ec58f28c209d1ffef51424b5d1423aa219c143a4 (patch) | |
tree | 6996d93b0286437ad43a717a29367e3c4505cfdd | |
parent | 577a88880ed63b832bc2b463cf0c5d5e36acd2c0 (diff) | |
download | spack-ec58f28c209d1ffef51424b5d1423aa219c143a4.tar.gz spack-ec58f28c209d1ffef51424b5d1423aa219c143a4.tar.bz2 spack-ec58f28c209d1ffef51424b5d1423aa219c143a4.tar.xz spack-ec58f28c209d1ffef51424b5d1423aa219c143a4.zip |
quantum-espresso: fix for scalapack with openmpi (#17179)
-rw-r--r-- | var/spack/repos/builtin/packages/quantum-espresso/package.py | 8 |
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: |