LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Brian W. Barrett (brbarret_at_[hidden])
Date: 2003-07-16 11:36:49


I don't think there is enough information to answer your question here,
but I would be willing to bet many of your problems result from testing
a request that has not been initialized yet (ie, mastersRequests[0]).
As for a send being marked as complete, but the data not filled in, I'm
afraid I can't help you much there, but you might want to make sure you
are actually sending what you think you are - usually such problems are
caused by sending the wrong buffer :).

The MPI forum web site is still supposed to be at
http://www.mpi-forum.org/, but the site appears to be unavailable right
now. I would try again in a couple days - they might be having server
problems or something similar.

Brian

On Tuesday, July 15, 2003, at 01:39 PM, William Boatin wrote:

> This relates to my previous question about MPI_Start and MPI_Startall
>
> having started all my receive commands using this code:
>
> for (iSlave = 1; iSlave < iSize; iSlave++)
> {
> // build handles for the receipt of results
> MPI_Recv_init(&recvResult[iSlave],
> 1,
> MPI_ResultType,
> iSlave,
> RESULTTAG,
> MPI_COMM_WORLD,
> &mastersRequests[iSlave]);
> iResult++;
>
> MPI_Start(&mastersRequests[iSlave]);
> }
>
> i planned to test each handle, and use the data received by that recv
> command (and then subsequentl the others that finish). howewer, when i
> run the following code, in which i do the test:
>
> while (iResult == 0)
> {
> MPI_Test(&(mastersRequests[iSlave]), &iResult, &status[iSlave]);
> iSlave++;
> if (iSlave >= iSize)
> {
> iSlave = 1;
> }
> printf("%d %d %d\n", iResult, mastersRequests[iSlave],
> status[iSlave].MPI_ERROR);
> }
>
> the printf statement indicates an MPI_ERR_REQUEST error. why? am i not
> creating the requests/handles properly? is there something wrong with
> the way i am testing for doneness of the recv commands? btw, iResult
> gets set to 1, indicating a recvs is done, but when i try and print
> out the received message, i get back an empty string. so there is
> definetely an error somewhere.
>
> ps - does the www.mpi-forum.org website exist anymore? if not, where,
> apart from the man pages, can iget detailed information about MPI
> commands. the man pages point me to the mpi-forum website (and so does
> the lam-mpi website, for me detailed information, but i cant seem to
> hit it.
>
> ps - jeff or whomever answered my previous questions about pascal and
> mpi. thanks for the help. i couldnt get the header conversion idea to
> work, so now i am writing all the mpi stuff in c, and linking to .o
> file of the pascal code i need to work with. so far so good.
>
> thanks for the help
>
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>