Discussion:
MPICH2 and parallel computing
(too old to reply)
kalana dissanayake
2011-03-30 04:57:45 UTC
Permalink
Hi,
I m new to MPICH2 and parallel computing ,
my question is how can i share an simple c++ object between machines?
Heiko Bauke
2011-03-30 08:49:14 UTC
Permalink
Hi,

On Tue, 29 Mar 2011 21:57:45 -0700 (PDT)
Post by kalana dissanayake
I m new to MPICH2 and parallel computing ,
my question is how can i share an simple c++ object between machines?
it depends on what »simple c++ objects« means. If your c++ object is a
POD [1] you may use MPI_Type_create_struct [2] to create an appropriate
data type. Boost MPI [3] may also be an option.


Heiko


[1] http://en.wikipedia.org/wiki/Plain_old_data_structure
[2] http://www.mpi-forum.org/docs/mpi22-report/node71.htm
[3] http://www.boost.org/doc/libs/1_46_1/doc/html/mpi.html
--
-- Niemand ist frei, der über sich selbst nicht Herr ist.
-- (Matthias Claudius, dt. Dichter, 1740-1815)
-- Number Crunch Blog @ http://numbercrunch.de
-- Heiko Bauke @ http://www.mpi-hd.mpg.de/personalhomes/bauke
Loading...