Nek5000: Improve support for OpenMPI without legacy launchers. (#20622)
Use "srun" for the nekmpi wrapper when we know "mpiexec" won't be available.
This commit is contained in:
parent
3f40d15c84
commit
83697161b4
@ -94,6 +94,11 @@ def install(self, spec, prefix):
|
||||
else:
|
||||
filter_file(r'^#MPI=0', 'MPI=0', 'makenek')
|
||||
|
||||
# Make sure nekmpi wrapper uses srun when we know OpenMPI
|
||||
# is not built with mpiexec
|
||||
if '^openmpi~legacylaunchers' in spec:
|
||||
filter_file(r'mpiexec -np', 'srun -n', 'nekmpi')
|
||||
|
||||
if '+profiling' not in spec:
|
||||
filter_file(r'^#PROFILING=0', 'PROFILING=0', 'makenek')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user