[OMPI users] open mpi on smp

2008-04-15 Thread Cally K
hi, am beginner in openmpi


could anyone tell me how do i run programs in open mpi on smp.. as in do I
have to do any changes in hostfile ... like in mpich -- I write

server:2

how do I do it openmpi


Re: [OMPI users] open mpi on smp

2008-04-17 Thread Cally K
hi thanks..everyone, it was very helpful.. I have another question too, but
I will post it as a different topic

On 4/17/08, Mark Kosmowski  wrote:
>
> Cally:
>
> In the hostfile you add a "slots" line.  For example on my dual
> opteron (single core) system, I have slots=2.  This can be read about
> in more detail in the FAQ - I provide a link for this section below -
> you may need to scroll down to see the example hostfile at the end of
> the section.
>
> http://www.open-mpi.org/faq/?category=running#mpirun-scheduling
>
> Happy computing,
>
> Mark Kosmowski
>
> > Message: 1
> > Date: Wed, 16 Apr 2008 14:32:58 +0200
> > From: " Jozef K??er " 
> > Subject: Re: [OMPI users] open mpi on smp
> > To: "Open MPI Users" 
> > Message-ID:
> ><8803b3d0804160532t60d9e82embeb01b8389416...@mail.gmail.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > I think that in pure OpenMPI environment (without any resorce manager)
> you
> > should be able to run applications like this:
> >
> > mpirun -np 2 mpi_executable
> > or
> > mpirun -np 4 -machinefile machines.list mpi_executable
> >
> > where machines.list contains a list of your computers identified by
> their
> > host names.
> > The former command should run the program locally on 2 processors/cores,
> the
> > latter
> > one on those specified in the list.
> >
> > Regards,
> > Jozef
> >
> > On Tue, Apr 15, 2008 at 6:38 PM, Cally K  wrote:
> >
> > > hi, am beginner in openmpi
> > >
> > >
> > > could anyone tell me how do i run programs in open mpi on smp.. as in
> do I
> > > have to do any changes in hostfile ... like in mpich -- I write
> > >
> > > server:2
> > >
> > > how do I do it openmpi
> > >
> > >
> > > ___
> > > 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
>


[OMPI users] Allocating some amount of memory for a process

2008-04-17 Thread Cally K
Hi everyone

Hi, am a beginner in openmpi, does openmpi provide a function for allocating
memory to a process. For example, I have a rendering process from paraview
named pvserver and I would like to allocate a certain amount of memory for
that process across a few nodes specified in the hostfile..Any idea...


[OMPI users] --bynode vs --byslot

2008-05-23 Thread Cally K
Hi, I have a question about --bynode and --byslot that i would like to
clarify

Say, for example, I have a hostfile

#Hostfile

__
node0
node1 slots=2 max_slots=2
node2 slots=2 max_slots=2
node3 slots=4 max_slots=4
___

There are 4 nodes and 9 slots, how do I run my mpirun, for now I use

a) mpirun -np --bynode 4 ./abcd

I know that the slot thingy is for SMPs, and I have tried running mpirun -np
--byslot 9 ./abcd

and I noticed that its longer when I do --byslot when compared to --bynode

and I just read the faq that said, by defauly the byslot option is used, so
I dun have to use it rite,,,


I am testing my application's performance, need to do some
benchmarking...amd I doing it right by using the bynode option Or I dun mind
benchmarking the byslot option, but only if I am doing it rite Could
someone tell me


[OMPI users] include port 80 in the hostfile

2008-05-24 Thread Cally K
Hi,

Is there a way to include an IP address with a different port in the openmpi
hostfile, I keep getting error.. the pc sits on a different port, port 80
whereas the others sit in port 22, how do I do that.


Re: [OMPI users] include port 80 in the hostfile

2008-05-25 Thread Cally K
Thank Adrian, solved it..

On 5/25/08, Adrian Knoth  wrote:
>
> On Sun, May 25, 2008 at 11:59:04AM +0800, Cally K wrote:
>
> > Is there a way to include an IP address with a different port in the
> openmpi
> > hostfile, I keep getting error.. the pc sits on a different port, port 80
> > whereas the others sit in port 22, how do I do that.
>
> No host sits on a special port. Hosts have IP addresses, whereas ports
> address a program (service) on a host (ports are the address information
> for the application layer).
>
> What you probably mean is: On one of your hosts, sshd is running on
> port 80 instead of 22.
>
> You can simply solve this problem by placing the appropriate port
> configuration in your .ssh/config file on the connecting host:
>
> Host = some.host.name
> Port = 80
>
> This allows you to say "ssh some.host.name" instead of "ssh -p 80
> some.host.name"
>
> So there's no need to specify the remote ssh port in the hostfile.
>
>
>
> --
> Cluster and Metacomputing Working Group
> Friedrich-Schiller-Universität Jena, Germany
>
> private: http://adi.thur.de
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>


[OMPI users] Problem with X forwarding

2008-05-30 Thread Cally K
hi, I have some problem running DistributedData.cxx ( it is a VTK file ) , I
need to be able to see the rendering from my computer

I, however have problem running the executable, I loaded both the executabe
into 2 machines

and I am accesing it from my computer( DHCP enabled )

after running the following command - I use OpenMPI

mpirun -hostfile myhostfile -np 2 -bynode ./DistributedData

and I keep getting these errors

ERROR: In
/home/kalpanak/Installation_Files/VTKProject/VTK/Rendering/vtkXOpenGLRenderWindow.cxx,
line 326
vtkXOpenGLRenderWindow (0x8664438): bad X server connection.


ERROR: In
/home/kalpanak/Installation_Files/VTKProject/VTK/Rendering/vtkXOpenGLRenderWindow.cxx,
line 169
vtkXOpenGLRenderWindow (0x8664438): bad X server connection.


[vrc1:27394] *** Process received signal ***
[vrc1:27394] Signal: Segmentation fault (11)
[vrc1:27394] Signal code: Address not mapped (1)
[vrc1:27394] Failing at address: 0x84
[vrc1:27394] [ 0] [0xe440]
[vrc1:27394] [ 1]
./DistributedData(_ZN22vtkXOpenGLRenderWindow20GetDesiredVisualInfoEv+0x229)
[0x8227e7d]
[vrc1:27394] [ 2]
./DistributedData(_ZN22vtkXOpenGLRenderWindow16WindowInitializeEv+0x340)
[0x8226812]
[vrc1:27394] [ 3]
./DistributedData(_ZN22vtkXOpenGLRenderWindow10InitializeEv+0x29)
[0x82234f9]
[vrc1:27394] [ 4]
./DistributedData(_ZN22vtkXOpenGLRenderWindow5StartEv+0x29) [0x82235eb]
[vrc1:27394] [ 5]
./DistributedData(_ZN15vtkRenderWindow14DoStereoRenderEv+0x1a) [0x82342ac]
[vrc1:27394] [ 6]
./DistributedData(_ZN15vtkRenderWindow10DoFDRenderEv+0x427) [0x8234757]
[vrc1:27394] [ 7]
./DistributedData(_ZN15vtkRenderWindow10DoAARenderEv+0x5b7) [0x8234d19]
[vrc1:27394] [ 8] ./DistributedData(_ZN15vtkRenderWindow6RenderEv+0x690)
[0x82353b4]
[vrc1:27394] [ 9]
./DistributedData(_ZN22vtkXOpenGLRenderWindow6RenderEv+0x52) [0x82245e2]
[vrc1:27394] [10] ./DistributedData [0x819e355]
[vrc1:27394] [11]
./DistributedData(_ZN16vtkMPIController19SingleMethodExecuteEv+0x1ab)
[0x837a447]
[vrc1:27394] [12] ./DistributedData(main+0x180) [0x819de78]
[vrc1:27394] [13] /lib/libc.so.6(__libc_start_main+0xe0) [0xb79c0fe0]
[vrc1:27394] [14] ./DistributedData [0x819dc21]
[vrc1:27394] *** End of error message ***
mpirun noticed that job rank 0 with PID 27394 on node  exited on signal
11 (Segmentation fault).



Maybe I am not doing the xforwading properly, but has anyone ever
encountered the same problem, it works fine on one pc, and I read the
mailing list but I just don't know if my prob is similiar to their, I even
tried changing the DISPLAY env


This is what I want to do

my mpirun should run on 2 machines ( A and B ) and I should be able to view
the output ( on my PC ),
are there any specfic commands to use.


Re: [OMPI users] --bynode vs --byslot

2008-06-04 Thread Cally K
Thanks, that was actually a lot of help, I had very little understanding of
the bynode and byslot thingy, thanks

On 6/5/08, Jeff Squyres  wrote:
>
> On May 23, 2008, at 9:07 PM, Cally K wrote:
>
> > Hi, I have a question about --bynode and --byslot that i would like
> > to clarify
> >
> > Say, for example, I have a hostfile
> >
> > #Hostfile
> >
> > __
> > node0
> > node1 slots=2 max_slots=2
> > node2 slots=2 max_slots=2
> > node3 slots=4 max_slots=4
> > ___
> >
> > There are 4 nodes and 9 slots, how do I run my mpirun, for now I use
> >
> > a) mpirun -np --bynode 4 ./abcd
>
> I assume you mean "... -np 4 --bynode ..."
>
> > I know that the slot thingy is for SMPs, and I have tried running
> > mpirun -np --byslot 9 ./abcd
> >
> > and I noticed that its longer when I do --byslot when compared to --
> > bynode
>
> According to your text, you're running 9 processes when using --byslot
> and 4 when using --bynode.  Is that a typo?  I'll assume that it is --
> that you meant to use 9 in both cases.
>
> > and I just read the faq that said, by defauly the byslot option is
> > used, so I dun have to use it rite,,,
>
> I'm not sure what your question is.  The actual performance may depend
> on your application and what its communication and computation
> patterns are.  It gets more difficult to model when you have a
> heterogeneous setup (like it looks like you have, per your hostfile).
>
> Let's take your example of 9 processes.
>
> - With --bynode, the MPI_COMM_WORLD ranks will be laid out as follows
> (MCRW = "MPI_COMM_WORLD rank")
>
> node0: MCWR 0
> node1: MCWR 1, MCWR 4
> node2: MCWR 2, MCWR 5
> node3: MCRW 3, MCRW 6, MCWR 7, MCWR 8
>
> - With --byslot, it'll look like this:
>
> node0: MCWR 0
> node1: MCWR 1, MCWR 2
> node2: MCWR 3, MCWR 4
> node3: MCRW 5, MCRW 6, MCWR 7, MCWR 8
>
> In short, OMPI is doing round-robin placement of your processes; the
> only difference is in which dimension is traversed first: by node or
> by slot.
>
> As to why there's such a performance difference, it could depend on a
> lot of things: the difference in computational speed and/or RAM on
> your 4 nodes, the changing communication patterns between the two
> (shared memory is usually used for on-node communication, which is
> usually faster than most networks), etc.  It really depends on what
> your application is *doing*.
>
> Sorry I can't be of more help...
>
> --
> Jeff Squyres
> Cisco Systems
>
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>