Re: [OMPI users] MPI_Finalize() maintains load at 100%.

2014-05-26 Thread Hjelm, Nathan T
..@udc.es] Sent: Monday, May 26, 2014 8:18 AM To: Open MPI Users Subject: Re: [OMPI users] MPI_Finalize() maintains load at 100%. Hi Ralph, With version 1.8 works fine :D I changed all the Finalize by exit(). Obviously with the processes that continues "util the end" I put a barrier

Re: [OMPI users] MPI_Finalize() maintains load at 100%.

2014-05-26 Thread Iván Cores González
every other process have finished their own calculations. Maybe you cal >>> also use the same method and keep P0 in waiting until it receives some data >>> from other processes? >> >> This solution was my first idea, but I can't do it. I use spawned processes >&

Re: [OMPI users] MPI_Finalize() maintains load at 100%.

2014-05-24 Thread Jeff Squyres (jsquyres)
m using MPI_Send and MPI_Recv functions to notify P0 that >>>> every other process have finished their own calculations. Maybe you cal >>>> also use the same method and keep P0 in waiting until it receives some data >>>> from other processes? >>> &g

Re: [OMPI users] MPI_Finalize() maintains load at 100%.

2014-05-23 Thread Ralph Castain
e the same method and keep P0 in waiting until it receives some data >>> from other processes? >> >> This solution was my first idea, but I can't do it. I use spawned processes >> and >> different communicators for manage "groups" of processes, so

Re: [OMPI users] MPI_Finalize() maintains load at 100%.

2014-05-23 Thread Ralph Castain
died (or at least don't stay at 100% load) when > their finish their work. Its a bit hard to explain. > > > > > - Mensaje original - > De: "Ralph Castain" > Para: "Open MPI Users" > Enviados: Viernes, 23 de Mayo 2014 16:39:34 > Asu

Re: [OMPI users] MPI_Finalize() maintains load at 100%.

2014-05-23 Thread Iván Cores González
tay at 100% load) when their finish their work. Its a bit hard to explain. - Mensaje original - De: "Ralph Castain" Para: "Open MPI Users" Enviados: Viernes, 23 de Mayo 2014 16:39:34 Asunto: Re: [OMPI users] MPI_Finalize() maintains load at 100%. On May 23, 2014,

Re: [OMPI users] MPI_Finalize() maintains load at 100%.

2014-05-23 Thread Ralph Castain
On May 23, 2014, at 7:21 AM, Iván Cores González wrote: > Hi Ralph, > Thanks for your response. > I see your point, I try to change the algorithm but some processes finish > while the others are still calling MPI functions. I can't avoid this > behaviour. > The ideal behavior is the processe

Re: [OMPI users] MPI_Finalize() maintains load at 100%.

2014-05-23 Thread Iván Cores González
Hi Ralph, Thanks for your response. I see your point, I try to change the algorithm but some processes finish while the others are still calling MPI functions. I can't avoid this behaviour. The ideal behavior is the processes go to sleep (or don't use the 100% of load) when the MPI_Finalize is

Re: [OMPI users] MPI_Finalize() maintains load at 100%.

2014-05-23 Thread Özgür Pekçağlıyan
Sorry, I assumed you were working with a group of machines (Different computer with their own resources, connected through network). I am not sure, if this would work in your situation. But you can still give it a try, if you keep process 0 in waiting for receiving data, It may consume less cpu tim

Re: [OMPI users] MPI_Finalize() maintains load at 100%.

2014-05-23 Thread Özgür Pekçağlıyan
In my codes, I am using MPI_Send and MPI_Recv functions to notify P0 that every other process have finished their own calculations. Maybe you cal also use the same method and keep P0 in waiting until it receives some data from other processes? On Fri, May 23, 2014 at 4:39 PM, Ralph Castain wrote

Re: [OMPI users] MPI_Finalize() maintains load at 100%.

2014-05-23 Thread Ralph Castain
Hmmm...that is a bit of a problem. I've added a note to see if we can turn down the aggressiveness of the MPI layer once we hit finalize, but that won't solve your immediate problem. Our usual suggestion is that you have each proc call finalize before going on to do other things. This avoids th

[OMPI users] MPI_Finalize() maintains load at 100%.

2014-05-23 Thread Iván Cores González
Hi all, I have a performance problem with the next code. int main( int argc, char *argv[] ) { MPI_Init(&argc, &argv); int myid; MPI_Comm_rank(MPI_COMM_WORLD, &myid); //Imagine some important job here, but P0 ends first. if (myid != 0) {