quantum-espresso: fix for scalapack with openmpi (#17179)
This commit is contained in:
parent
577a88880e
commit
ec58f28c20
@ -307,7 +307,13 @@ def install(self, spec, prefix):
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user