Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] OPEN MPI data transfer error
From: Jack Bryan (dtustudy68_at_[hidden])
Date: 2010-10-22 15:19:05


Hi,
I am using open MPI to transfer data between nodes.
But the received data is not what the data sender sends out .
I have tried C and C++ binding .
data sender: double* sendArray = new double[sendResultVec.size()];
        for (int ii =0 ; ii < sendResultVec.size() ; ii++) { sendArray[ii] = sendResultVec[ii]; }
        MPI::COMM_WORLD.Send(sendArray, sendResultVec.size(), MPI_DOUBLE, 0, myworkerUpStreamTaskTag); data receiver: double* recvArray = new double[objSize];
        mToMasterT1Req = MPI::COMM_WORLD.Irecv(recvArray, objSize, MPI_DOUBLE, destRank, myUpStreamTaskTag);

The sendResultVec.size() = objSize.

What is the possible reason ?

Any help is appreciated.
thanks
jack
Oct. 22 1010