Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor/rewrite mpirun to not exec a second executable #12712

Open
hppritcha opened this issue Jul 25, 2024 · 2 comments
Open

refactor/rewrite mpirun to not exec a second executable #12712

hppritcha opened this issue Jul 25, 2024 · 2 comments

Comments

@hppritcha
Copy link
Member

hppritcha commented Jul 25, 2024

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.

@bosilca
Copy link
Member

bosilca commented Jul 25, 2024

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

@hppritcha hppritcha changed the title refactor/rewrite mpirun to not fork/exec a second executable refactor/rewrite mpirun to not exec a second executable Jul 25, 2024
@hppritcha
Copy link
Member Author

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

actually mpirun just execv's pretrun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants