Re: [OMPI users] function fgets hangs a mpi program when it is used ompi-ps command

2010-09-23 Thread Ralph Castain
ompi-ps talks to mpirun to get the info, and then pretty-prints it to stderr. Best guess is that it is having problems contacting mpirun. Are you running it on the same node as mpirun (a requirement, unless you pass it the full contact info)? Check the ompi-ps man page and also "ompi-ps -h" to ens

Re: [OMPI users] function fgets hangs a mpi program when it is used ompi-ps command

2010-09-23 Thread Matheus Bersot Siqueira Barros
Jeff and Ralph, Thank you for your reply. 1) I'm not running on machines with OpenFabrics. 2) In my example, ompi-ps prints a maximum 82 bytes per line. Even so, I augment to 300 bytes per line to be sure that it is not the problem. char mystring [300]; ... fgets (mystring , 300 , pFile); 2) W

Re: [OMPI users] function fgets hangs a mpi program when it is used ompi-ps command

2010-09-22 Thread Ralph Castain
Printouts of less than 100 bytes would be unusual...but possible On Wed, Sep 22, 2010 at 8:15 AM, Jeff Squyres wrote: > Are you running on machines with OpenFabrics devices (that Open MPI is > using)? > > Is ompi-ps printing 100 bytes or more? > > What does ps show when your program is hung? > >

Re: [OMPI users] function fgets hangs a mpi program when it is used ompi-ps command

2010-09-22 Thread Jeff Squyres
Are you running on machines with OpenFabrics devices (that Open MPI is using)? Is ompi-ps printing 100 bytes or more? What does ps show when your program is hung? On Sep 17, 2010, at 3:13 PM, Matheus Bersot Siqueira Barros wrote: > Open MPI Version = 1.4.2 > OS = Ubuntu 10.04 LTS and CentOS 5

[OMPI users] function fgets hangs a mpi program when it is used ompi-ps command

2010-09-17 Thread Matheus Bersot Siqueira Barros
Open MPI Version = 1.4.2 OS = Ubuntu 10.04 LTS and CentOS 5.3 When I run the mpi program below in the terminal, the function fgets hangs. How do I know it? I do a printf before and later the call of fgets and only the message "before fgets()" is showed. However, when I run the same program at Ecl