Re: [OMPI users] Problem runing MPI on cluster (mpi4py)

2012-09-26 Thread Jeff Squyres
The mpi4py web site appears to be down right now, so I can't check, but don't you need to call MPI_Finalize somehow? Maybe you need to explicitly close the MPI module (which then implicitly calls MPI_Finalize)? I'm afraid I don't know much about mpi4py, so I can't offer specific advice. Tha

Re: [OMPI users] Problem runing MPI on cluster

2012-09-26 Thread Ralph Castain
Well, not sure what I can advise. Check to ensure that your LD_LIBRARY_PATH is pointing to the same installation where your mpirun is located. For whatever reason, the processes think they are singletons - i.e., that they were not actually started by mpirun. You might also want to ask the mpi4py f

Re: [OMPI users] Problem runing MPI on cluster

2012-09-25 Thread Mariana Vargas Magana
Yes I am sure I read from a mpi4py guide I already check the examples if fact this an example extracted from a guide…!! Evenmore this example if I use with mpich2 it runs very nicely, even though for the other code I need openmpi working =s Mariana On Sep 25, 2012, at 8:00 PM, Ralph Castain

Re: [OMPI users] Problem runing MPI on cluster

2012-09-25 Thread Ralph Castain
I don't think that is true, but I suggest you check the mpi4py examples. I believe all import does is import function definitions - it doesn't execute anything. Sent from my iPad On Sep 25, 2012, at 2:41 PM, mariana Vargas wrote: > MPI_init() is actually called when import MPI module from MPi

Re: [OMPI users] Problem runing MPI on cluster

2012-09-25 Thread mariana Vargas
MPI_init() is actually called when import MPI module from MPi package... On Sep 25, 2012, at 5:17 PM, Ralph Castain wrote: You forgot to call MPI_Init at the beginning of your program. On Sep 25, 2012, at 2:08 PM, Mariana Vargas Magana > wrote: Hi I think I'am not understanding what you sa

Re: [OMPI users] Problem runing MPI on cluster

2012-09-25 Thread Ralph Castain
You forgot to call MPI_Init at the beginning of your program. On Sep 25, 2012, at 2:08 PM, Mariana Vargas Magana wrote: > Hi > I think I'am not understanding what you said , here is the hello.py and next > the command mpirun… > > Thanks! > > #!/usr/bin/env python > """ > Parallel Hello World

Re: [OMPI users] Problem runing MPI on cluster

2012-09-25 Thread Mariana Vargas Magana
Hi I think I'am not understanding what you said , here is the hello.py and next the command mpirun… Thanks! #!/usr/bin/env python """ Parallel Hello World """ from mpi4py import MPI import sys size = MPI.COMM_WORLD.Get_size() rank = MPI.COMM_WORLD.Get_rank() name = MPI.Get_processor_name() sy

Re: [OMPI users] Problem runing MPI on cluster

2012-09-25 Thread Ralph Castain
The usual reason for this is that you aren't launching these processes correctly. How are you starting your job? Are you using mpirun? On Sep 25, 2012, at 1:43 PM, mariana Vargas wrote: > Hi > > I fact I found what is the origin of this problem and it is because all > processes have rank 0,

Re: [OMPI users] Problem runing MPI on cluster

2012-09-25 Thread mariana Vargas
Hi I fact I found what is the origin of this problem and it is because all processes have rank 0, so I tested and in effect even when I send the clasical Hello.py give the same, how can I solved this?? Do I re installed every again??? Help please... Mariana On Sep 24, 2012, at 9:13 P

Re: [OMPI users] Problem runing MPI on cluster

2012-09-25 Thread Ralph Castain
On Sep 24, 2012, at 6:13 PM, Mariana Vargas Magana wrote: > > > Yes you are right this is what it says but if fact the weird thing is that > not all times the error message appears….I send to 20 nodes and only one > gives this message, is this normal… Yes - that is precisely the behavior y

Re: [OMPI users] Problem runing MPI on cluster

2012-09-24 Thread Mariana Vargas Magana
Yes you are right this is what it says but if fact the weird thing is that not all times the error message appears….I send to 20 nodes and only one gives this message, is this normal… On Sep 24, 2012, at 8:00 PM, Ralph Castain wrote: > Well, as it says, your processes called MPI_Init, but

Re: [OMPI users] Problem runing MPI on cluster

2012-09-24 Thread Ralph Castain
Well, as it says, your processes called MPI_Init, but at least one of them exited without calling MPI_Finalize. That violates the MPI rules and we therefore terminate the remaining processes. Check your code and see how/why you are doing that - you probably have a code path whereby a process ex

[OMPI users] Problem runing MPI on cluster

2012-09-24 Thread mariana Vargas
Hi all I get this error when I run a paralelized python code in a cluster, could anyone give me an idea of what is happening? I'am new in this Thanks... mpirun has exited due to process rank 2 with PID 10259 on node f01 exiting improperly. There are two reasons this could occur: 1. this