<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="rtl"><div>בס"ד</div><div><br></div><div dir="ltr">first thank you!<br>your program works with the command: "<span style="font-size:12.8px">mpiexec -n 1 ./get_count"</span></div><div dir="ltr"><span style="font-size:12.8px">but when i put: "</span><span style="font-size:12.8px">mpiexec -n 4 ./get_count" i receive:</span></div><div dir="ltr"><span style="font-size:12.8px"><img src="cid:ii_153d82abecf60fc6" alt="תמונה מוטבעת 1" width="271" height="56"><br></span></div><div dir="ltr"><span style="font-size:12.8px"><br></span></div><div dir="ltr">what does it means?</div><div dir="ltr"><span style="font-size:12.8px"><br></span></div><div dir="ltr"><span style="font-size:12.8px"><br></span></div><div dir="ltr"><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2016-03-30 16:56 GMT+03:00 Kenneth Raffenetti <span dir="ltr"><<a href="mailto:raffenet@mcs.anl.gov" target="_blank">raffenet@mcs.anl.gov</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try "mpiexec -n 1 ./get_count".<span class=""><br>
<br>
On 03/30/2016 08:46 AM, יוסף אלון wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
i don't know why, but the first command works and the second command isnt.<br>
i have the following error:<br></span><span class="">
תמונה מוטבעת 1<br>
<br>
what this means?<br>
<br>
2016-03-28 21:15 GMT+03:00 Jeff Hammond <<a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br></span>
<mailto:<a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a>>>:<span class=""><br>
<br>
I created a ticket for this:<br>
<a href="https://trac.mpich.org/projects/mpich/ticket/2332" rel="noreferrer" target="_blank">https://trac.mpich.org/projects/mpich/ticket/2332</a>.<br>
<br>
Jeff<br>
<br>
On Mon, Mar 28, 2016 at 10:26 AM, Wei-keng Liao<br></span>
<<a href="mailto:wkliao@eecs.northwestern.edu" target="_blank">wkliao@eecs.northwestern.edu</a> <mailto:<a href="mailto:wkliao@eecs.northwestern.edu" target="_blank">wkliao@eecs.northwestern.edu</a>>><span class=""><br>
wrote:<br>
<br>
My test program can be compiled with command "mpicc get_count.c<br>
-o get_count"<br>
and run "mpiexec -n 4 get_count". For correct (expected) result,<br>
nothing<br>
will be printed on stdout. Otherwise, error messages will be<br>
printed.<br>
<br>
My point is MPI_Get_count does not report correct result because<br>
MPI collective I/O call fails to initialize the MPI_Status object.<br>
<br>
I found that OpenMPI and earlier version of MPICH (2-1.2.1) can run<br>
this test code correctly.<br>
<br>
The test failed when I ran MPICH 3.1.4 and the current from GIT<br>
repo.<br>
<br>
Wei-keng<br>
<br>
On Mar 26, 2016, at 3:21 PM, יוסף אלון wrote:<br>
<br>
> בס"ד<br>
><br>
> becuse all the command confusion.<br>
> which command should i put to run the above code?<br>
><br>
> 2016-03-26 3:31 GMT+03:00 Wei-keng Liao<br>
<<a href="mailto:wkliao@eecs.northwestern.edu" target="_blank">wkliao@eecs.northwestern.edu</a><br></span>
<mailto:<a href="mailto:wkliao@eecs.northwestern.edu" target="_blank">wkliao@eecs.northwestern.edu</a>>>:<span class=""><br>
><br>
> I notice an uninitialized MPI_Status object can make<br>
MPI_Get_count return a wrong result,<br>
> when the data amount in the MPI operation is zero (although I<br>
only checked MPI-IO).<br>
> Attached is a test program that uses MPI collective read<br>
where only root process has<br>
> non-zero length data to read. The expected result from<br>
MPI_Get_count is 0 for all<br>
> non-root process. To mimic an uninitialized MPI_Status<br>
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>
><br>
><br>
> Wei-keng<br>
><br>
><br>
> _______________________________________________<br></span>
> discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a> <mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><span class=""><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>
><br>
><br>
><br>
> --<br>
> בברכה, יוסף אלון<br>
> 050-4916740<br>
> _______________________________________________<br></span>
> discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a> <mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><span class=""><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>
<br>
_______________________________________________<br></span>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a> <mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><span class=""><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>
<br>
<br>
<br>
<br>
--<br>
Jeff Hammond<br></span>
<a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a> <mailto:<a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a>><br>
<a href="http://jeffhammond.github.io/" rel="noreferrer" target="_blank">http://jeffhammond.github.io/</a><br>
<br>
_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a> <mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><span class=""><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>
<br>
<br>
<br>
<br>
--<br>
בברכה, יוסף אלון<br>
050-4916740<br>
<br>
<br>
_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">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>
<br>
</span></blockquote><div class="HOEnZb"><div class="h5">
_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">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></div></div></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>