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,
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
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 {
>
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)
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
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
¡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
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