Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Adam C Powell IV (hazelsct_at_[hidden])
Date: 2007-07-19 17:14:13


Hello,

On Wed, 2007-07-18 at 17:22 -0400, Tim Prins wrote:
> > The one missing detail is that I can't seem to get the stdout/stderr
> > output. For example:
> >
> > $ orterun -np 1 uptime
> > $ uptime
> > 18:24:27 up 13 days, 3:03, 0 users, load average: 0.00, 0.03, 0.00
> >
> > The man page indicates that stdout/stderr is supposed to come back to
> > the stdout/stderr of the orterun process. Any ideas on why this isn't
> > working?
> It should work. However, we currently have some I/O forwarding problems which
> show up in some environments that will (hopefully) be fixed in the next
> release. As far as I know, the problem seems to happen mostly with non-mpi
> applications.
>
> Try running a simple mpi application, such as:
>
> #include <stdio.h>
> #include "mpi.h"
>
> int main(int argc, char* argv[])
> {
> int rank, size;
>
> MPI_Init(&argc, &argv);
> MPI_Comm_rank(MPI_COMM_WORLD, &rank);
> MPI_Comm_size(MPI_COMM_WORLD, &size);
> printf("Hello, world, I am %d of %d\n", rank, size);
> MPI_Finalize();
>
> return 0;
> }
>
> If that works fine, then it is probably our problem, and not a problem with
> your setup.
>
> Sorry I don't have a better answer :(
>
> Tim

Even that is not working for me :-(

$ mpicc test.c -o test
$ ./test
Hello, world, I am 0 of 1
$ orterun -np 1 ./test
$

It sounds like this is not a problem with the Debian package, nor with
OpenMPI, but something peculiar to my chroot environment. Output is
only needed for testing purposes in my case, so it's not urgent, but it
would be helpful to track this down at some point. If that means
waiting for the next OpenMPI (pre-)release, that's fine with me.

Thanks again,
-Adam

-- 
GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6
Welcome to the best software in the world today cafe!
http://www.take6.com/albums/greatesthits.html