[OMPI users] Regarding the Pthreads

2012-09-05 Thread seshendra seshu
Hi,
I am learning pthreads and trying to implement the pthreads in my
quicksortprogram.
My problem is iam unable to understand how to implement the pthreads at
data received at a node from the master (In detail: In my program Master
will divide the data and send to the slaves and each slave will do the
sorting independently of The received data and send back to master after
sorting is done. Now Iam having a problem in Implementing the pthreads at
the slaves,i.e how to implement the pthreads in order to share data among
the cores in each slave and sort the data and send it back to master.
So could anyone help in solving this problem by providing some suggestions
and clues.

Thanking you very much.

-- 
 WITH REGARDS
M.L.N.Seshendra


Re: [OMPI users] Regarding hyperthreding

2012-08-14 Thread seshendra seshu
Hi

I was about tell that i have written an MPI code in which i have specified
only for the communication between nodes and i dont whether can i run
program as per my requirement i.e to use the cores present in my node (all
4 cores). So my doubt is should i need to include pthreads or the program
which i have written is sufficient.

My program gives the output has MPI-size=4
 time at node1:
time at node 2:
time at node3:
time at node 4:


This is what i was explaining.


On Tue, Aug 14, 2012 at 2:17 PM, Jeff Squyres <jsquy...@cisco.com> wrote:

> On Aug 14, 2012, at 7:55 AM, seshendra seshu wrote:
>
> > I haven't still changed my code to run when threading is  needed
> (presently working).
>
> I'm afraid I can't parse that sentence; I don't know what you mean.
>
> > I have doubt that when i calculate the MPI ranks using the MPI command
>  it gives only the nodes which have given in a host file.
>
> I'm not sure what this is saying, either.  Sorry!  :-(
>
> If you are running in a scheduled environment (e.g., under the SLURM or
> Torque/PBS schedulers), then Open MPI will find out from the schedule how
> many processors are on that machine and react accordingly.
>
> Otherwise, if you are running in an unscheduled environment (e.g., if you
> just specify a hostfile to tell Open MPI where to run), then you need to
> tell Open MPI how many processes you want it to launch on each node.  Per
> Tom's advice, we usually recommend running -- at most -- one MPI process
> per core.
>
> > But how can i calculate the MPI ranks as you have told i.e N=H(
>  number of CPUs showing on a node ) x M ( number of nodes in a cluster).
>
> Use the Hwloc utility "lstopo" to give you a graphical depiction of the
> internal topology of your machine(s).
> http://www.open-mpi.org/projects/hwloc/
>
> Then you can count how many cores are on your machine and set your
> hostfile accordingly.
>
> > And I would like test like this if have 2 nodes and where I can use up
> to 50 cores. I would like to scale like 2,4,8,16,32,45 cores and at the
> same time if use 8 cores then I would like to take the readings as node1-
> 3cores and node2-5 cores. So in order to do that should I need mention
> anything in the host file as I have mentioned the No.of nodes.
>
> In general, just list how many slots you have on each machine in the
> hostfile and then use mpirun's -np and -npernode options to specify how
> many total processes to run and how many to run per machine.  For example:
>
> -
> shell$ cat hostfile
> # This hostfile represents 2 Intel Romley-based servers; 16 cores each
> server1 slots=16
> server2 slots=16
> shell$ mpirun --hostfile hostfile -np 4 --npernode 2 my_mpi_executable
> # ^^ this runs a total of 4 MPI processes, 2 on each node
> shell$ mpirun --hostfile hostfile -np 16 --npernode 8 my_mpi_executable
> # ^^ this runs a total of 16 MPI processes, 8 on each node
> -
>
> ...and so on.
>
> --
> 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 hyperthreding

2012-08-14 Thread seshendra seshu
Hi Tom,

Thank you.

I haven't still changed my code to run when threading is  needed (presently
working).
I have doubt that when i calculate the MPI ranks using the MPI command  it
gives only the nodes which have given in a host file.
But how can i calculate the MPI ranks as you have told i.e N=H(number
of CPUs showing on a node ) x M ( number of nodes in a cluster).

And I would like test like this if have 2 nodes and where I can use up to
50 cores. I would like to scale like 2,4,8,16,32,45 cores and at the same
time if use 8 cores then I would like to take the readings as node1- 3cores
and node2-5 cores. So in order to do that should I need mention anything in
the host file as I have mentioned the No.of nodes.

And can provide me any tutorials which explains with an example programs.


Thanking you,


On Mon, Aug 13, 2012 at 6:59 PM, Elken, Tom <tom.el...@intel.com> wrote:

>  Hi Seshendra,
>
> ** **
>
> If you have implemented hyperthreading by Enabling it in the BIOS, then
> when you look at
>
> cat /proc/cpuinfo output, you will see 2x the # of CPUs than the number of
> cores on your system. 
>
>  If that number of CPUs showing on a node = H, and the number of nodes in
> your cluster with this same configuration is M,   
>
> Then you can run your program on up to N = H x M  MPI ranks,
>
> and your Open MPI  mpirun command can use the
>
> ‘-np N –npernode H’   options to indicate this.
>
> ** **
>
> Note that with some applications, you may see very little benefit to
> hyperthreading.  In any case, you should also run on “-np N/2” ranks and
> add the “-npernode H/2” setting to not use more ranks per node than you
> have cores per node, and compare performance with N ranks (with H per node).
> 
>
> ** **
>
> -Tom
>
> ** **
>
> 
>
> ** **
>
> *From:* users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] *On
> Behalf Of *seshendra seshu
> *Sent:* Monday, August 13, 2012 9:27 AM
> *To:* Open MPI Users
> *Subject:* [OMPI users] Regarding hyperthreding
>
> ** **
>
> Hi,
>
> I have written an code mpi and an iam trying to implement hyperthreading
> environment. So could any one tell me how to implement and run the
> program in open mpi.
>
> ** **
>
> Kindly help me.
>
> ** **
>
> Thanking you,
>
> ** **
>
> ** **
>
>
> --
>  WITH REGARDS
> M.L.N.Seshendra
>
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>



-- 
 WITH REGARDS
M.L.N.Seshendra


[OMPI users] Regarding hyperthreding

2012-08-13 Thread seshendra seshu
Hi,
I have written an code mpi and an iam trying to implement hyperthreading
environment. So could any one tell me how to implement and run the program
in open mpi.

Kindly help me.

Thanking you,



-- 
 WITH REGARDS
M.L.N.Seshendra


[OMPI users] Regarding the programming

2012-07-30 Thread seshendra seshu
Hi,
I new to MPI programming, i had a task that i have around 3 nodes and where
3 nodes consists of 50 process so where i need to write an parallel quick
sort considering 2,4,8,16 32,42,50. so ineed some ideas and materials to
develop this code so kindly help me by providing your valuable suggestions
and materials with some examples.


Thanking you,


-- 
 WITH REGARDS
M.L.N.Seshendra


Re: [OMPI users] Regarding the execution time calculation

2012-05-04 Thread seshendra seshu
Hi,
I haven't used the more mpi process also but still am still unable to
reduce my exection time.Here is my code *http://seshendramln.blogspot.se/*
and please help me in solving.
In this code iam getting the same execution time in i increase or decrease
the no.of nodes.

thanking you


With regards
seshendra


On Fri, May 4, 2012 at 12:55 PM, Jeff Squyres <jsquy...@cisco.com> wrote:

> You probably need to be more fine-grained in your timing.  Find out
> exactly what is increasing in time.  This is a common symptom for codes
> that do not scale well -- i.e., adding more MPI processes actually causes
> it to slow down.
>
>
> On May 3, 2012, at 7:48 AM, seshendra seshu wrote:
>
> > Hi,
> > I have written an parallel program and when i run my program on 4,8,16
> nodes and calculated the execution time at master using MPI_Wtime in master
> node. The problem the execution time is increasing rapidly like NON
> parallel program-55 sec, and for parallel program 2-nodes--60sec , 4-nodes
> 74sec, 8-node--120 sec and for 16 nodes---for 180 sec. can i know my
> problem in parallel version actually the time needs to be decreased but it
> is increasing i dont the reason. i have calculated my time as shown below
> >
> >
> > main(argv,argc)
> > {
> > double start,end;
> > start= MPI_Wtime;
> > // done some work
> > {
> > // start send from master node and receiving it
> > end =MPI_Wtime;
> > cout<<"execution time"<<end-start;
> > }
> > //in slave nodes done some work
> >  MPI_Finalize;
> > }
> >
> > Please help me in solving this problem.
> >
> > --
> >  WITH REGARDS
> > M.L.N.Seshendra
> > ___
> > users mailing list
> > us...@open-mpi.org
> > http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
> --
> 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


[OMPI users] Regarding the execution time calculation

2012-05-03 Thread seshendra seshu
Hi,
I have written an parallel program and when i run my program on 4,8,16
nodes and calculated the execution time at master using MPI_Wtime in master
node. The problem the execution time is increasing rapidly like NON
parallel program-55 sec, and for parallel program 2-nodes--60sec , 4-nodes
74sec, 8-node--120 sec and for 16 nodes---for 180 sec. can i know my
problem in parallel version actually the time needs to be decreased but it
is increasing i dont the reason. i have calculated my time as shown below


main(argv,argc)
{
double start,end;
start= MPI_Wtime;
// done some work
{
// start send from master node and receiving it
end =MPI_Wtime;
cout<<"execution time"<

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

2012-04-25 Thread seshendra seshu
Hi jeff Squyres
Iam sorry ,actually i have gone through all ur advises and also created an
password less ssh key by the instructions provided in FAQ of OpenMPI
website. and i have google, for giving the permission to user to access
SSH, for that i have configured in SSH_config file but iam unable to
succeed in solving it.

Thanking you,

With Regards
seshendra

On Wed, Apr 25, 2012 at 8:47 PM, Jeff Squyres <jsquy...@cisco.com> wrote:

> Did you read the FAQ links that I sent?  It talks about setting up SSH
> keys.  Also try this link:
>
>http://bit.ly/JQd6cF
>
> (sidenote: I am very willing to help people, especially those who are new
> to the field, who are willing to help themselves.  But my patience grows a
> little thin when I repeatedly send information that is ignored :-) )
>
>
> On Apr 25, 2012, at 1:38 PM, seshendra seshu wrote:
>
> > 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 <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 <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 <
> tyler.bal...@huskers.unl.edu> wrote:
> > > > 

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

2012-04-25 Thread seshendra seshu
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 <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 <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 <
> 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 [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) <
> jsquy...@cisco.com> wr

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

2012-04-25 Thread seshendra seshu
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 <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 <
> 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 [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) <
> 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" <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 <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:
> >>
>

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

2012-04-25 Thread seshendra seshu
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 <
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 [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) <
> 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" <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 <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
>
> ___
> 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 seshendra seshu
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) <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" <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 <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 an mpi programs

2012-04-25 Thread seshendra seshu
so should i need to create an user and run the mpi program. or how can i
run in cluster

On Wed, Apr 25, 2012 at 4:45 PM, Doug Reeder <d...@cox.net> wrote:

> That is well documented as a BAD idea.
>
> On Apr 25, 2012, at 8:23 AM, seshendra seshu wrote:
>
> Hi
> Yes i run in root.
>
> On Wed, Apr 25, 2012 at 4:20 PM, tyler.bal...@huskers.unl.edu <
> tyler.bal...@huskers.unl.edu> wrote:
>
>>  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
>>
>> ___
>> 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 an mpi programs

2012-04-25 Thread seshendra seshu
Hi
Yes i run in root.

On Wed, Apr 25, 2012 at 4:20 PM, tyler.bal...@huskers.unl.edu <
tyler.bal...@huskers.unl.edu> wrote:

>  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
>
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>



-- 
 WITH REGARDS
M.L.N.Seshendra


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

2012-04-25 Thread seshendra seshu
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


[OMPI users] regarding the installation

2012-04-25 Thread seshendra seshu
Hi,
I have installed openMPI on the master node  and separately on client nodes
how can i check that all nodes can communicate for openmpi for running
parallel programs. And i need to use ssh for the connection establishment.
i need the configuration of ssh for open mpi.

thanking you,


-- 
 WITH REGARDS
M.L.N.Seshendra


[OMPI users] Regarding the problem while connecting to nodes present in a cluster

2012-04-24 Thread seshendra seshu
Hi,
I have installed MPI and when i tried to run MPI parallelly on all the
nodes, that while MPI is looking to establish connection i have been
getting the following error
"*ERROR: LAM/MPI unexpectedly received the following on stderr:Permission
denied (publickey,gssapi-with-mic)." so any one could help in solving this.


Thanking you.
*
-- 
 WITH REGARDS
M.L.N.Seshendra


[OMPI users] Regarding MPI programming

2012-04-23 Thread seshendra seshu
Hi,
I am using stacks , where i stored my sub arrays in stacks and i need send
the sub arrays to all the nodes but i have know idea what is the size of
array present in stack so how can i receive the data using MPI_recv with
out knowing the size of a array. can any please help me in solving this.


-- 
 WITH REGARDS
M.L.N.Seshendra


[OMPI users] Regarding installation procedure for installing openmpi for 1master and 16 slaves

2012-04-20 Thread seshendra seshu
Hi,
Am new to MPI i was trying to install OpenMPI on 1 master and 16 slaves i
could not find the correct correct installation steps and configurations
needed  for before installing open MPI , so can any help me in installation
procedure.




Thanking you,

-- 
 WITH REGARDS
M.L.N.Seshendra


Re: [OMPI users] Regarding the error while running an mpi program

2012-04-01 Thread seshendra seshu
Hi george
Thank you , but i dont know how to configure the path. can you help me in
configuring the path.
On Mon, Apr 2, 2012 at 2:22 AM, George Bosilca <bosi...@eecs.utk.edu> wrote:

> http://www.open-mpi.org/faq/?category=running#run-prereqs
>
>   george.
>
> On Apr 1, 2012, at 20:18 , seshendra seshu wrote:
>
> Hi,
> This is seshendra, iam new to MPI , iam doing my thesis on MPI, iam trying
> to configure openMPI in clould using UNIVA cluster in amazon cloud.
> I have followed the procedure given in the FAQ of the openMPI website and
> i have installed successfully on all the nodes. But when i run the an MPI
> program i was getting an following error "[root@ip-10-46-89-192 opt]#
> mpirun -np 2 a.out
> a.out: error while loading shared libraries: libmpi.so.0: cannot open
> shared object file: No such file or directory
> a.out: error while loading shared libraries: libmpi.so.0: cannot open
> shared object file: No such file or directory"
> So kindly any one help in sloving this problem.
>
>
> Thanking you,
>
>
>
> --
>  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


[OMPI users] Regarding the error while running an mpi program

2012-04-01 Thread seshendra seshu
Hi,
This is seshendra, iam new to MPI , iam doing my thesis on MPI, iam trying
to configure openMPI in clould using UNIVA cluster in amazon cloud.
I have followed the procedure given in the FAQ of the openMPI website and i
have installed successfully on all the nodes. But when i run the an MPI
program i was getting an following error "[root@ip-10-46-89-192 opt]#
mpirun -np 2 a.out
a.out: error while loading shared libraries: libmpi.so.0: cannot open
shared object file: No such file or directory
a.out: error while loading shared libraries: libmpi.so.0: cannot open
shared object file: No such file or directory"
So kindly any one help in sloving this problem.


Thanking you,



-- 
 WITH REGARDS
M.L.N.Seshendra