Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Brandon Fulcher
Thanks Gustavo, I have managed to get it working now. The problem was indeed the difference between Ubuntu Packages, ( I assume so.) and after figuring out the PATH mess it runs and communicates well. Thank you so much for the help! On Sat, Oct 23, 2010 at 7:02 PM, Gustavo Correa wrote: > Hi Br

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Gustavo Correa
Hi Brandon Yes, as others said and you figured, version is important, and installing from source is not hard, probably will save you more headaches than installing the packages (which normally vary with the Linux distro version). Regarding the environment variables. You need to set the PATH and

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Brandon Fulcher
Hi, so yes I'm trying to install the source but after installing, it does not seem to be able to locate the libraries. mpirun gives the error libopen-rte.so.0: cannot open shared object file: No such file or directory Of course, I have seen this faq http://www.open-mpi.org/faq/?category=running#a

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Ashley Pittman
On 23 Oct 2010, at 17:58, Brandon Fulcher wrote: > So I checked the OMPI package details on both machines, they each are running > Open MPI 1.3. . . but then I noticed that the packages are different > versions. Basically, the slave is running the previous Ubuntu release, and > the master is

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread David Zhang
I suppose the two machines you have are of the same type? That they are both running 32-bit or 64-bit? On Sat, Oct 23, 2010 at 10:07 AM, Brandon Fulcher wrote: > That might very well be my problem. The slave is running 9.10 (Karmic) and > the Master is running 10.04 (Lucid.) I forgot that Mave

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Brandon Fulcher
That might very well be my problem. The slave is running 9.10 (Karmic) and the Master is running 10.04 (Lucid.) I forgot that Maverick came out this month. I will try compiling from source and seeing what happens after that. Danke Stefan, and thank you again Jeff & everyone else. On Sat, Oct 2

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Stefan Kuhne
Am 23.10.2010 18:58, schrieb Brandon Fulcher: Hello, > So I checked the OMPI package details on both machines, they each are > running Open MPI 1.3. . . but then I noticed that the packages are > different versions. Basically, the slave is running the previous > Ubuntu release, and the master i

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Brandon Fulcher
Ah Jeff, maybe you are on to something. So now that I understand what you mean, launching mpirun -np 3 -hostfile hosts.txt hostname returns two copies of the local system name and then the by now very familiar -- mpirun noti

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Jeff Squyres (jsquyres)
What if you run w 2 hosts? It's unusual that no indication of the actual error is shown. Are you running exactly the same version of OMPI on both nodes? Sent from my PDA. No type good. On Oct 23, 2010, at 12:37 PM, "Brandon Fulcher" wrote: > Hi Jeff, thanks for responding. > > mpirun host

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Brandon Fulcher
Hi Jeff, thanks for responding. mpirun hostname returns the name of the local machine. On Sat, Oct 23, 2010 at 11:27 AM, Jeff Squyres (jsquyres) < jsquy...@cisco.com> wrote: > I didn't notice if it came up earlier - are you running the same version of > OMPI on each node? > > What happens if you

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Brandon Fulcher
Hi Gustavo, thank you for the response. I have been using Linux for only a couple years so I'm not very familiar with ssh. However, i followed the instructions on this site: https://source.ggy.bris.ac.uk/wiki/Configure_ssh_for_MPI and I can ssh into the remote machine without a password prompt.

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Jeff Squyres (jsquyres)
I didn't notice if it came up earlier - are you running the same version of OMPI on each node? What happens if you try mpirunning hostname (ie not an MPI app)? Sent from my PDA. No type good. On Oct 23, 2010, at 12:07 PM, "Brandon Fulcher" wrote: > Hi Jody, thank you for the response. > > S

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Brandon Fulcher
Hi Jody, thank you for the response. Specifying the number of processes in the manner you provided (mpirun -np 2 hostfile hosts.txt ilk) Does indeed succeed. All processes are launched on my local machine which has two slots. If I change the command to: mpirun -np 3 hostfile hosts.txt ilk It

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread jody
Hi Brandon Does it work if you try this: mpirun -np 2 hostfile hosts.txt ilk (see http://www.open-mpi.org/faq/?category=running#simple-spmd-run) jody On Sat, Oct 23, 2010 at 4:07 PM, Brandon Fulcher wrote: > Thank you for the response! > > The code runs on my own machine as well.  Both machin

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Gustavo Correa
Hi Brandon You must have passwordless ssh setup across the machines. Check if you can ssh passwordless back and forth across all node pairs, with the host names or IPs you have in your host.txt file. Your /etc/host (or whatever Ubuntu uses to match hosts and IPs) must be consistent (perhaps the s

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread Brandon Fulcher
Thank you for the response! The code runs on my own machine as well. Both machines, in fact. And I did not build MPI but installed the package from the ubuntu repositories. The problem occurs when I try to run a job using two machines or simply try to run it on a slave from the master. the act

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread David Zhang
since you said you're new to MPI, what command did you use to run the 2 processes? On Fri, Oct 22, 2010 at 9:58 PM, David Zhang wrote: > your code works on mine machine. could be they way you build mpi. > > On Fri, Oct 22, 2010 at 7:26 PM, Brandon Fulcher wrote: > >> Hi, I am completely new to

Re: [OMPI users] Running simple MPI program

2010-10-23 Thread David Zhang
your code works on mine machine. could be they way you build mpi. On Fri, Oct 22, 2010 at 7:26 PM, Brandon Fulcher wrote: > Hi, I am completely new to MPI and am having trouble running a job between > two cpus. > > The same thing happens no matter what MPI job I try to run, but here is a > simp