<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="rtl">בס"ד<div><br></div><div dir="ltr">becuse all the command <span style="color:rgb(62,62,62);font-family:Arial;font-size:16px">confusion.</span></div><div dir="ltr"><span style="color:rgb(62,62,62);font-family:Arial;font-size:16px">which command should i put to run the above code?</span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2016-03-26 3:31 GMT+03:00 Wei-keng Liao <span dir="ltr"><<a href="mailto:wkliao@eecs.northwestern.edu" target="_blank">wkliao@eecs.northwestern.edu</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I notice an uninitialized MPI_Status object can make MPI_Get_count return a wrong result,<br>
when the data amount in the MPI operation is zero (although I only checked MPI-IO).<br>
Attached is a test program that uses MPI collective read where only root process has<br>
non-zero length data to read. The expected result from MPI_Get_count is 0 for all<br>
non-root process. To mimic an uninitialized MPI_Status object, I call memset to make<br>
the object non-zero.<br>
<br>
Here is the code fragment.<br>
<br>
if (rank == 0) len = 10;<br>
else len = 0;<br>
<br>
MPI_File_read_all(fh, buf, len, MPI_BYTE, &status);<br>
<br>
MPI_Get_count(&status, MPI_BYTE, &get_size);<br>
<br>
For process rank > 0, get_size may not be 0.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Wei-keng<br>
<br>
</font></span><br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="rtl"><div style="TEXT-ALIGN:center">בברכה, יוסף אלון</div>
<div style="TEXT-ALIGN:center">050-4916740</div></div></div>
</div>