[OMPI users] redirecting output

2012-03-30 Thread tyler.bal...@huskers.unl.edu
Hello all,

I am using the command mpirun -np nprocs -machinefile machines.arch Pcrystal 
and my output strolls across my terminal I would like to send this output to a 
file and I cannot figure out how to do soI have tried the general  > 
FILENAME and > log & these generate files however they are empty.any 
help would be appreciated.

Thank you for reading

Tyler


Re: [OMPI users] redirecting output

2012-03-30 Thread tyler.bal...@huskers.unl.edu
I am using openmpi-1.4.5 and I just tried |tee ~/outputfile.txt and it 
generated the file named outputfile.txt but again it was empty

From: users-boun...@open-mpi.org [users-boun...@open-mpi.org] on behalf of Marc 
Cozzi [co...@nd.edu]
Sent: Friday, March 30, 2012 9:56 AM
To: Open MPI Users
Subject: Re: [OMPI users] redirecting output

DoesPcrystal |tee ./outputfile.txtwork?


  --marc
From: users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] On Behalf 
Of François Tessier
Sent: Friday, March 30, 2012 10:56 AM
To: Open MPI Users
Subject: Re: [OMPI users] redirecting output

Hello!

Did you try to redirect also the error output? Maybe your application write its 
output on stderr.

François

On 30/03/2012 16:41, 
tyler.bal...@huskers.unl.edu<mailto:tyler.bal...@huskers.unl.edu> wrote:
Hello all,

I am using the command mpirun -np nprocs -machinefile machines.arch Pcrystal 
and my output strolls across my terminal I would like to send this output to a 
file and I cannot figure out how to do soI have tried the general  > 
FILENAME and > log & these generate files however they are empty.any 
help would be appreciated.

Thank you for reading

Tyler




___

users mailing list

us...@open-mpi.org<mailto:us...@open-mpi.org>

http://www.open-mpi.org/mailman/listinfo.cgi/users


Re: [OMPI users] regarding the problem occurred while running an mpi programs

2012-04-25 Thread tyler.bal...@huskers.unl.edu
Seshendra,

Do you always run in root? If not your root bash file may not have the correct 
path settings, but that is a shot in the dark..

From: users-boun...@open-mpi.org [users-boun...@open-mpi.org] on behalf of 
seshendra seshu [seshu...@gmail.com]
Sent: Wednesday, April 25, 2012 9:16 AM
To: Open MPI Users
Subject: [OMPI users] regarding the problem occurred while running an mpi 
programs


Hi,
I have got the following error while running mpi programs

Here for running an mpi program i used hostfile which specifies all the nodes 
in my cluster and out is my output file generated after "mpicc -o out basic.c". 
then i have got the following error.

[root@ip-10-80-106-70 openmpi-1.4.5]# mpirun --hostfile hostfile out
out: error while loading shared libraries: libmpi_cxx.so.0: cannot open shared 
object file: No such file or directory
--
mpirun was unable to launch the specified application as it could not find an 
executable:

Executable: out
Node: ip-10-85-134-176.example.com

while attempting to start process rank 1.


so kindly provide me  solution iam lagging of time.

--
 WITH REGARDS
M.L.N.Seshendra


Re: [OMPI users] regarding the problem occurred while running an mpi programs

2012-04-25 Thread tyler.bal...@huskers.unl.edu
Now you need to set your path in your bash profile as Jeff suggested

From: users-boun...@open-mpi.org [users-boun...@open-mpi.org] on behalf of 
seshendra seshu [seshu...@gmail.com]
Sent: Wednesday, April 25, 2012 10:24 AM
To: Open MPI Users
Subject: Re: [OMPI users] regarding the problem occurred while running an mpi 
programs

Hi
now i have created an used and tried to run the program but i got the following 
error

[master@ip-10-80-106-70 ~]$ mpirun -n 1 --hostfile hostfile out
out: error while loading shared libraries: libmpi_cxx.so.0: cannot open shared 
object file: No such file or directory


thanking you



On Wed, Apr 25, 2012 at 5:12 PM, Jeff Squyres 
mailto:jsquy...@cisco.com>> wrote:
On Apr 25, 2012, at 11:06 AM, seshendra seshu wrote:

> so should i need to create an user and run the mpi program. or how can i run 
> in cluster

It is a "best practice" to not run real applications as root (e.g., MPI 
applications).  Create a non-privlidged user to run your applications.

Then be sure to set your LD_LIBRARY_PATH if you installed Open MPI into a 
non-system-default location.  See this FAQ item:

   http://www.open-mpi.org/faq/?category=running#adding-ompi-to-path

--
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/


___
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users



--
 WITH REGARDS
M.L.N.Seshendra


Re: [OMPI users] regarding the problem occurred while running anmpi programs

2012-04-25 Thread tyler.bal...@huskers.unl.edu
export LD_LIBRARY_PATH= [location of library] leave out the :$LD_LIBRARY_PATH

From: users-boun...@open-mpi.org [users-boun...@open-mpi.org] on behalf of 
seshendra seshu [seshu...@gmail.com]
Sent: Wednesday, April 25, 2012 10:43 AM
To: Open MPI Users
Subject: Re: [OMPI users] regarding the problem occurred while running anmpi 
programs

Hi
I have exported the library files as below

[master@ip-10-80-106-70 ~]$ export 
LD_LIBRARY_PATH=/usr/local/openmpi-1.4.5/lib:$LD_LIBRARY_PATH
[master@ip-10-80-106-70 ~]$ mpirun --prefix /usr/local/openmpi-1.4.5 -n 1 
--hostfile hostfile out
out: error while loading shared libraries: libmpi_cxx.so.0: cannot open shared 
object file: No such file or directory
[master@ip-10-80-106-70 ~]$ mpirun --prefix /usr/local/lib/ -n 1 --hostfile 
hostfile out
out: error while loading shared libraries: libmpi_cxx.so.0: cannot open shared 
object file: No such file or directory

But still iam getting the same error.





On Wed, Apr 25, 2012 at 5:36 PM, Jeff Squyres (jsquyres) 
mailto:jsquy...@cisco.com>> wrote:
See the FAQ item I cited.

Sent from my phone. No type good.

On Apr 25, 2012, at 11:24 AM, "seshendra seshu" 
mailto:seshu...@gmail.com>> wrote:

Hi
now i have created an used and tried to run the program but i got the following 
error

[master@ip-10-80-106-70 ~]$ mpirun -n 1 --hostfile hostfile out
out: error while loading shared libraries: libmpi_cxx.so.0: cannot open shared 
object file: No such file or directory


thanking you



On Wed, Apr 25, 2012 at 5:12 PM, Jeff Squyres 
mailto:jsquy...@cisco.com>> wrote:
On Apr 25, 2012, at 11:06 AM, seshendra seshu wrote:

> so should i need to create an user and run the mpi program. or how can i run 
> in cluster

It is a "best practice" to not run real applications as root (e.g., MPI 
applications).  Create a non-privlidged user to run your applications.

Then be sure to set your LD_LIBRARY_PATH if you installed Open MPI into a 
non-system-default location.  See this FAQ item:

   http://www.open-mpi.org/faq/?category=running#adding-ompi-to-path

--
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/


___
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users



--
 WITH REGARDS
M.L.N.Seshendra
___
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users

___
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users



--
 WITH REGARDS
M.L.N.Seshendra


Re: [OMPI users] regarding the problem occurred while running anmpi programs

2012-04-25 Thread tyler.bal...@huskers.unl.edu
You'll need to use ssh-keygen to make a set of RSA keys. Don't enter a password 
when it prompts for one; this will ensure passwordless operation. Once the keys 
are created, copy ~/.ssh/id_rsa.pub to ~/.ssh/authorized_keys and you should be 
set.


From: users-boun...@open-mpi.org [users-boun...@open-mpi.org] on behalf of 
seshendra seshu [seshu...@gmail.com]
Sent: Wednesday, April 25, 2012 12:38 PM
To: Open MPI Users
Subject: Re: [OMPI users] regarding the problem occurred while running anmpi 
programs

Hi,
I have tried so much for correcting that ssh error but unable solve it. but 
when i tried  connecting to client nodes through ssh   in root 
user iam iam successful but when i have created an new user iam unable to 
connect. so please any help in solving this. As iam nearing to deadline.


Thanking you,


With Regards
Seshendra

On Wed, Apr 25, 2012 at 7:06 PM, Jeff Squyres 
mailto:jsquy...@cisco.com>> wrote:
To get you running, just setup ssh keys that have empty passphrases.  Then you 
don't need ssh-agent.

To setup ssh keys that have non-empty passphrases and get ssh-agent working 
properly, google around for ssh tutorials (there are many fine ones available) 
-- that's a bit out of scope for this list.



On Apr 25, 2012, at 12:47 PM, seshendra seshu wrote:

> Hi,
> I have read the FAQ for ssh and followed it but i have got the following error
>
> [master@ip-10-80-106-70 .ssh]$ eval 'ssh-agent'
> SSH_AUTH_SOCK=/tmp/ssh-MOnArn9942/agent.9942; export SSH_AUTH_SOCK;
> SSH_AGENT_PID=9943; export SSH_AGENT_PID;
> echo Agent pid 9943;
> [master@ip-10-80-106-70 .ssh]$ ssh-add $home/master/.ssh/id_dsa
> Could not open a connection to your authentication agent.
>
>
> so how can i solve it.
>
>
> Thanking you
>
> With Regards
> seshendra
>
> On Wed, Apr 25, 2012 at 6:16 PM, Jeff Squyres 
> mailto:jsquy...@cisco.com>> wrote:
> I would really suggest doing a little reading in the FAQ.  It talks about 
> setting up ssh keys, etc.
>
>http://www.open-mpi.org/faq/?category=rsh
>
>
> On Apr 25, 2012, at 12:03 PM, seshendra seshu wrote:
>
> > Hi,
> > Thanks its has worked but when i tried to run for a 2 nodes , i have got 
> > the following error
> >
> > [master@ip-10-80-106-70 ~]$ mpirun -n 2 --hostfile hostfile out
> > Permission denied (publickey,gssapi-with-mic).
> > --
> > A daemon (pid 9923) died unexpectedly with status 255 while attempting
> > to launch so we are aborting.
> >
> > There may be more information reported by the environment (see above).
> >
> > This may be because the daemon was unable to find all the needed shared
> > libraries on the remote node. You may set your LD_LIBRARY_PATH to have the
> > location of the shared libraries on the remote nodes and this will
> > automatically be forwarded to the remote nodes.
> > --
> > --
> > mpirun noticed that the job aborted, but has no info as to the process
> > that caused that situation.
> > ------
> > mpirun: clean termination accomplished
> >
> > [master@ip-10-80-106-70 ~]$
> >
> >
> > so please help me in solving this.
> >
> > Thanking you.
> >
> >
> > On Wed, Apr 25, 2012 at 5:48 PM, 
> > tyler.bal...@huskers.unl.edu<mailto:tyler.bal...@huskers.unl.edu> 
> > mailto:tyler.bal...@huskers.unl.edu>> wrote:
> > export LD_LIBRARY_PATH= [location of library] leave out the 
> > :$LD_LIBRARY_PATH
> > From: users-boun...@open-mpi.org<mailto:users-boun...@open-mpi.org> 
> > [users-boun...@open-mpi.org<mailto:users-boun...@open-mpi.org>] on behalf 
> > of seshendra seshu [seshu...@gmail.com<mailto:seshu...@gmail.com>]
> > Sent: Wednesday, April 25, 2012 10:43 AM
> > To: Open MPI Users
> > Subject: Re: [OMPI users] regarding the problem occurred while running 
> > anmpi programs
> >
> > Hi
> > I have exported the library files as below
> >
> > [master@ip-10-80-106-70 ~]$ export 
> > LD_LIBRARY_PATH=/usr/local/openmpi-1.4.5/lib:$LD_LIBRARY_PATH
> > [master@ip-10-80-106-70 ~]$ mpirun --prefix /usr/local/openmpi-1.4.5 -n 1 
> > --hostfile hostfile out
> > out: error while loading shared libraries: libmpi_cxx.so.0: cannot open 
> > shared object file: No such file or directory
> > [master@ip-10-80-106-70 ~]$ mpirun --prefix /usr/local/lib/ -n 1 --hostfile 
> > hostfi