the value returned by the function which generates the destination value is less than nprocs but it magically changes to 99 once it is passed to Isend.<br><br>assert(dest<nprocs) is successful in the function but fails in the caller which contains Isend.<br>
<br><div class="gmail_quote">On Fri, Feb 17, 2012 at 9:32 AM, Rajeev Thakur <span dir="ltr"><<a href="mailto:thakur@mcs.anl.gov">thakur@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Can you print the value of dest just before calling MPI_Isend?<br>
<div><div class="h5"><br>
<br>
On Feb 17, 2012, at 12:33 AM, <a href="mailto:coolhead.pranay@gmail.com">coolhead.pranay@gmail.com</a> wrote:<br>
<br>
> Hi,<br>
><br>
> I encountered a strange problem when trying to send a message using MPI_ISend. The program exits with the following error message<br>
><br>
> Fatal error in MPI_Isend: Invalid rank, error stack:<br>
> MPI_Isend(146): MPI_Isend(buf=0x6bbfc0, count=129, MPI_DOUBLE, dest=99, tag=99, MPI_COMM_WORLD, request=0x6bd000) failed<br>
> MPI_Isend(96).: Invalid rank has value 99 but must be nonnegative and less than 4<br>
> rank 1 in job 129 kratos_43452 caused collective abort of all ranks<br>
> exit status of rank 1: return code 1<br>
><br>
> I am pretty sure that the value of destination is < nprocs. Another strange error is that when I change the tag to 88 the error is almost the same except dest=88, "Invalid rank has a value 88".<br>
><br>
> Can tell me possible reasons for this strange behavior ?<br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
> To manage subscription options or unsubscribe:<br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br>
_______________________________________________<br>
mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Pranay Anchuri<div>Computer Science Graduate Student</div><div>Rensselaer Polytechnic Institute</div><div>Troy,NY<br><br></div><br>