LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: L WK (phase2phasel_at_[hidden])
Date: 2005-10-12 08:25:55


Hi there,
  A similar question have been asked in this forum months ago. I get some
information from that reply but still have a question about that. I am
wondering if there is any way to reduce a data of a special datatype(like
checkboard-shape, with data located on the black grid)

  It is easy to create such datatype(says CSData), however, the following
calling is invalid in MPI as mentioned before

MPI_Reduce( &src, &dest, 1, CSData, myOp, 0, MPI_COMM_WORLD);

MPI_Reduce knows nothing about the CSData and only ONE element will be
reduced actually.

I am going to reduce the data limited by CSData. For that, I will first
copy all data needed into a temporary buffer and then reduce the buffer, at
last copy the buffer to the destionation accordingly to the checkboard
structure. This method is too raw and the inefficient. I am looking for a
better way!

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn