ompi icon indicating copy to clipboard operation
ompi copied to clipboard

refactor/rewrite mpirun to not exec a second executable

Open hppritcha opened this issue 1 year ago • 2 comments

As part of the Open MPI fork of PRRTe migration into the Open MPI source tree proper, it would be desirable to rework Open MPI's mpirun tool to not exec the prterun executable.

One option would be to export a function(s) from libprrte.so (which may be renamed as part of this project) that the existing mpirun.c could use to replace the need to fork/exec prterun. This approach would require effectively turning the main function in https://github.com/open-mpi/prrte/blob/master/src/tools/prte/prte.c into a library function(s) provided in libprrte.so.

hppritcha avatar Jul 25 '24 16:07 hppritcha

Can't we skip the fork and just exec the prterun in the mpirun process ?

bosilca avatar Jul 25 '24 17:07 bosilca

Can't we skip the fork and just exec the prterun in the mpirun process ?

actually mpirun just execv's prterun.

hppritcha avatar Jul 25 '24 19:07 hppritcha