Re: [OMPI users] MPI_Send, MPI_Recv problem on Mac and Linux

2012-04-18 Thread Peter Sels
ok, I see. Interesting. Thanks. Peter On 18 April 2012 14:17, Jeffrey Squyres <jsquy...@cisco.com> wrote: > On Apr 18, 2012, at 3:15 AM, Peter Sels wrote: > >> I suppose with C++ MPI it's possible to enforce more strict type >> checking using template or so.) >

Re: [OMPI users] MPI_Send, MPI_Recv problem on Mac and Linux

2012-04-18 Thread Peter Sels
e -- i.e., the > address pointing to the buffer.  Don't send the address of the pointer, > because then you're telling MPI to overwrite the pointer itself.  I.e.,: > >  work = new char[...]; >  MPI_Send(work, ...) > > not > >  work = new char[...]; >  MPI_Send(, ...); &

[OMPI users] MPI_Send, MPI_Recv problem on Mac and Linux

2012-04-11 Thread Peter Sels
Dear openMPI users, I think this should be an easy question to anyone with more experience than an openMPI-hello-world-program... I wrote some openMPI code, where the master sends a length and then a buffer with that length as 2 subsequent MPI messages. The slave is receiving these messages and