Re: [OMPI users] Calling a variable from another processor

2014-01-17 Thread Jeff Hammond
++49(0)711-685-87203 > email: nietham...@hlrs.de > http://www.hlrs.de/people/niethammer > > > > - Ursprüngliche Mail - > Von: "Pradeep Jha" > An: "Open MPI Users" > Gesendet: Freitag, 10. Januar 2014 10:23:40 > Betreff: Re: [OMPI users] Calling a v

Re: [OMPI users] Calling a variable from another processor

2014-01-17 Thread Pradeep Jha
(HLRS) > Nobelstrasse 19 > 70569 Stuttgart > > Tel: ++49(0)711-685-87203 > email: nietham...@hlrs.de > http://www.hlrs.de/people/niethammer > > > > - Ursprüngliche Mail - > Von: "Pradeep Jha" > An: "Open MPI Users" > Gesendet: F

Re: [OMPI users] Calling a variable from another processor

2014-01-16 Thread Christoph Niethammer
- Ursprüngliche Mail - Von: "Pradeep Jha" An: "Open MPI Users" Gesendet: Freitag, 10. Januar 2014 10:23:40 Betreff: Re: [OMPI users] Calling a variable from another processor Thanks for your responses. I am still not able to figure it out. I will further simply

Re: [OMPI users] Calling a variable from another processor

2014-01-10 Thread Pradeep Jha
Thanks for your responses. I am still not able to figure it out. I will further simply my problem statement. Can someone please help me with a fortran90 code for that. 1) I have N processors each with an array A of size S 2) On any random processor (say rank X), I calculate the two integer values,

Re: [OMPI users] Calling a variable from another processor

2014-01-09 Thread Jeff Hammond
One sided is quite simple to understand. It is like file io. You read/write (get/put) to a memory object. If you want to make it hard to screw up, use passive target bss wrap you calls in lock/unlock so every operation is globally visible where it's called. I've never deadlocked RMA while p2p

Re: [OMPI users] Calling a variable from another processor

2014-01-09 Thread Jeff Squyres (jsquyres)
MPI one-sided stuff is actually pretty complicated; I wouldn't suggest it for a beginner (I don't even recommend it for many MPI experts ;-) ). Why not look at the MPI_SOURCE in the status that you got back from the MPI_RECV? In fortran, it would look something like (typed off the top of my he

Re: [OMPI users] Calling a variable from another processor

2014-01-09 Thread Christoph Niethammer
Hello, I suggest you have a look onto the MPI one-sided functionality (Section 11 of the MPI Spec 3.0). Create a window to allow the other processes to access the arrays A directly via MPI_Get/MPI_Put. Be aware of synchronization which you have to implement via MPI_Win_fence or manual locking.