Skip to content
Snippets Groups Projects
Unverified Commit ec58f28c authored by Nichols A. Romero's avatar Nichols A. Romero Committed by GitHub
Browse files

quantum-espresso: fix for scalapack with openmpi (#17179)

parent 577a8888
No related branches found
No related tags found
No related merge requests found
...@@ -307,7 +307,13 @@ def install(self, spec, prefix): ...@@ -307,7 +307,13 @@ def install(self, spec, prefix):
options.append('BLAS_LIBS={0}'.format(lapack_blas.ld_flags)) options.append('BLAS_LIBS={0}'.format(lapack_blas.ld_flags))
if '+scalapack' in spec: 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)) options.append('--with-scalapack={0}'.format(scalapack_option))
if '+elpa' in spec: if '+elpa' in spec:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment