Re: [OMPI users] Object Send Doubt

2008-07-24 Thread Tim Mattox
Hello Carlos, Sorry for the long delay in replying. You may want to take a look at the Boost.MPI project: http://www.boost.org/doc/html/mpi.html It has a higher-level interface to MPI that is much more C++ friendly. On Sat, Jul 12, 2008 at 3:30 PM, Carlos Henrique da Silva Santos wrote: > Dear,

Re: [OMPI users] Object Send Doubt

2008-07-13 Thread Gabriele Fatigati
Hi Carlos, but why you need to pass an object? I don't understand this. Usuall, in MPI, we don't need to do this. 2008/7/13 Andreas Schäfer : > On 08:10 Sun 13 Jul , Carlos Henrique da Silva Santos wrote: > > Ok. Gabriele, > >But I would like to know, how can I define DATATYPE on send a

Re: [OMPI users] Object Send Doubt

2008-07-13 Thread Andreas Schäfer
On 08:10 Sun 13 Jul , Carlos Henrique da Silva Santos wrote: > Ok. Gabriele, >But I would like to know, how can I define DATATYPE on send and > recv? Could you give me an example? >For example, my class has the following design and I want to > send/recv Test object. > > class Test { >

Re: [OMPI users] Object Send Doubt

2008-07-13 Thread Carlos Henrique da Silva Santos
Ok. Gabriele, But I would like to know, how can I define DATATYPE on send and recv? Could you give me an example? For example, my class has the following design and I want to send/recv Test object. class Test { private: int coordinate; vector s; public: void setD(int, vector)

Re: [OMPI users] Object Send Doubt

2008-07-13 Thread Gabriele Fatigati
Hi Carlos, simply you can send all object's field and rebuild new object in destination process. Maybe, you have to delete old object in source process. Remember that you can't send address (eg: pointers) because they refera in local memory. If you want to do "deep copy" of object, you have to se

Re: [OMPI users] Object Send Doubt

2008-07-12 Thread Carlos Henrique da Silva Santos
Mr. Andreas, (English) I tried to apply MPI_Type_create_struct(), which is correct for C Struct, as showed (https://hec.wiki.leeds.ac.uk/pub/Techniques/ParallelComputing/MPI_course.pdf). But, I can't solve it for C++ object. (Portuguese) Eu tentei aplicar MPI_Type_create_struct

Re: [OMPI users] Object Send Doubt

2008-07-12 Thread Andreas Schäfer
¡Hola Carlos! Es posible. Por favor, lee el manual follando. ;-) For instance at www.mpi-forum.org. Specifically look for documentation for MPI_Type_create_struct(). HTH -Andi On 16:30 Sat 12 Jul , Carlos Henrique da Silva Santos wrote: > Dear, > > I m looking for a solution. > I m d

[OMPI users] Object Send Doubt

2008-07-12 Thread Carlos Henrique da Silva Santos
Dear, I m looking for a solution. I m developing a C++ code and I have an object called Field. I need to send/recv this object over some process allowed in my cluster. For example, I have to send Field from process 1 to process 2 and 3, but not process 4. My questions are: Is possible to s