-
Notifications
You must be signed in to change notification settings - Fork 885
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
Bug or Wrong documentation for --output-filename option #7095
Comments
@ericch1 You are absolutely correct. I'm sure the behavior was exactly as described in mpirexec.1 at some point, but later we changed the behavior and then neglected to update mpiexec.1. Thanks for bringing this to our attention! I may have someone for whom this would be a nice simple way to introduce themselves to the Open MPI code base / git / github pull requests / etc... |
Is it configurable or not for a user to have the same behavior as before? Thanks for the information Jeff. |
I'm guessing we totally removed the old functionality because of the dichotomy of Is the current functionality ok? Or is there a different way you'd like to see it? |
I really like the old way it was done: It gave a simple list of files to explore/grep from. I won't ask you to change the actual behavior because of my preferences: I expect there are greater reasons why it changed... But I was totally confused about the non-documented change, so I first thought it was a bug with slurm, then a bug with OpenMPI... Now I know what to do to have all the files renamed and moved to replicate the old behavior... I may suggest you rename the option |
I also would very much like to have the old behavior available as an option. I went to a lot of trouble to code my application so all output is compiled to a named file written from rank 0 and I want to direct it somewhere with no added characters in the file name, no new directories that I would have to delete, etc. When a run fails, it is fine when stderr comes to my login screen, but any other treatment separate from or merged into stdout is OK with me. |
I ran into the same problem and I did some digging. I am using fedora (5.3.8-200.fc30.x86_6) Man page gives me the description of the old behaviour. I quick grep on the master branch gives two location where 'output-filename' is declared as an parameter.
./orte/mca/schizo/ompi/schizo_ompi.c
Can these two behaviours be selected with some mca parameters or is the version in ./orte/orted/orted_main.c dead code or just wrong documentation? |
I'm afraid not - as indicated, the old behavior is currently not available. It isn't dead code anywhere - it is simply a case of the documentation not being updated to indicate that the behavior has changed. |
Cool! Both features!!!! |
see open-mpi#7095 Signed-off-by: Eisuke Kawashima <[email protected]>
see open-mpi#7095 Signed-off-by: Eisuke Kawashima <[email protected]>
see open-mpi#7095 Signed-off-by: Eisuke Kawashima <[email protected]>
Hi,
In the documentation of mpixec, the option "-output-filename, --output-filename " is described as:
Redirect the stdout, stderr, and stddiag of all processes to a process-unique version of the specified filename. Any directories in the filename will automatically be created. Each output file will consist of filename.id, where the id will be the processes’ rank in MPI_COMM_WORLD, left-filled with zero’s for correct ordering in listings. A relative path value will be converted to an absolute path based on the cwd where mpirun is executed. Note that this will not work on environments where the file system on compute nodes differs from that where mpirun is executed.
Refs:
https://www.open-mpi.org/doc/v4.0/man1/mpiexec.1.php
https://www.open-mpi.org/doc/v3.1/man1/mpiexec.1.php
https://www.open-mpi.org/doc/v3.0/man1/mpiexec.1.php
https://www.open-mpi.org/doc/v2.1/man1/mpiexec.1.php
https://www.open-mpi.org/doc/v2.0/man1/mpiexec.1.php
https://www.open-mpi.org/doc/v1.10/man1/mpiexec.1.php
However, as of version 3.x and 4.x, the filename is not generated, it is instead a directory.
Is it a bug or a wrong documentation? Is there a way to have the same behavior as of 2.X and before?
to reproduce this error:
The text was updated successfully, but these errors were encountered: