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:
Rémi Lacroix 2021-01-06 10:20:41 +01:00 committed by GitHub
parent 3f40d15c84
commit 83697161b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')