Re: [OMPI users] MPI and C++

2009-07-05 Thread Jeff Squyres
On Jul 4, 2009, at 9:20 AM, Robert Kubrick wrote: > There is a proposal that has passed one vote so far to deprecate > the C++ bindings in MPI-2.2 (meaning: still have them, but advise > against using them). This opens the door for potentially removing > the C++ bindings in MPI-3.0. Is it the

[OMPI users] MPI and C++ - now Send and Receive of Classes and STL containers

2009-07-05 Thread Luis Vitorio Cargnini
Hi, So, after some explanation I start to use the bindings of C inside my C ++ code, then comme my new doubt: How to send a object through Send and Recv of MPI ? Because the types are CHAR, int, double, long double, you got. Someone have any suggestion ? Thanks. Vitorio. smime.p7s Descripti

Re: [OMPI users] MPI and C++ - now Send and Receive of Classes and STL containers

2009-07-05 Thread Robert Kubrick
Regardless of MPI, when sending C++ object over the network you have to serialize their contents. The structures, or classes, have to be coded to a stream of bytes, sent over the network, then recoded into their complex object types by the receiving application. There is no way to send obje

Re: [OMPI users] MPI and C++ - now Send and Receive of Classes and STL containers

2009-07-05 Thread John Phillips
Luis Vitorio Cargnini wrote: Hi, So, after some explanation I start to use the bindings of C inside my C++ code, then comme my new doubt: How to send a object through Send and Recv of MPI ? Because the types are CHAR, int, double, long double, you got. Someone have any suggestion ? Thanks. V

Re: [OMPI users] MPI and C++ - now Send and Receive of Classes and STL containers

2009-07-05 Thread Luis Vitorio Cargnini
Thank you very much John, the explanation of &v[0], was the kind of think that I was looking for, thank you very much. This kind of approach solves my problems. Le 09-07-05 à 22:20, John Phillips a écrit : Luis Vitorio Cargnini wrote: Hi, So, after some explanation I start to use the binding