Description
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:
[eric@lorien] bug (master $ u=)> mpiexec -n 1 --output-filename out.txt echo "Hi"
Hi
[eric@lorien] bug (master $ u=)> ls -latr
total 8
drwxr-xr-x 18 eric giref 4096 Oct 17 09:59 ..
drwx------ 3 eric giref 15 Oct 17 10:00 out.txt
drwx------ 3 eric giref 21 Oct 17 10:00 .
[eric@lorien] bug (master $ u=)> ls -la out.txt/
total 0
drwx------ 3 eric giref 15 Oct 17 10:00 .
drwx------ 3 eric giref 21 Oct 17 10:00 ..
drwx------ 3 eric giref 20 Oct 17 10:00 1
[eric@lorien] bug (master $ u=)> ls -la out.txt/1/
total 0
drwx------ 3 eric giref 20 Oct 17 10:00 .
drwx------ 3 eric giref 15 Oct 17 10:00 ..
drwxr-x--- 2 eric giref 34 Oct 17 10:00 rank.0
[eric@lorien] bug (master $ u=)> ls -la out.txt/1/rank.0/
total 4
drwxr-x--- 2 eric giref 34 Oct 17 10:00 .
drwx------ 3 eric giref 20 Oct 17 10:00 ..
-rw------- 1 eric giref 0 Oct 17 10:00 stderr
-rw------- 1 eric giref 3 Oct 17 10:00 stdout
[eric@lorien] bug (master $ u=)> mpiexec --version
mpiexec (OpenRTE) 4.0.1
Report bugs to http://www.open-mpi.org/community/help/