[mpich-discuss] uninitialized MPI_Status object

יוסף אלון yos104104 at gmail.com
Sat Mar 26 15:21:53 CDT 2016


בס"ד

becuse all the command confusion.
which command should i put to run the above code?

2016-03-26 3:31 GMT+03:00 Wei-keng Liao <wkliao at eecs.northwestern.edu>:

>
> I notice an uninitialized MPI_Status object can make MPI_Get_count return
> a wrong result,
> when the data amount in the MPI operation is zero (although I only checked
> MPI-IO).
> Attached is a test program that uses MPI collective read where only root
> process has
> non-zero length data to read. The expected result from MPI_Get_count is 0
> for all
> non-root process. To mimic an uninitialized MPI_Status object, I call
> memset to make
> the object non-zero.
>
> Here is the code fragment.
>
>     if (rank == 0) len = 10;
>     else len = 0;
>
>     MPI_File_read_all(fh, buf, len, MPI_BYTE, &status);
>
>     MPI_Get_count(&status, MPI_BYTE, &get_size);
>
> For process rank > 0, get_size may not be 0.
>
>
> Wei-keng
>
>
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>



-- 
בברכה, יוסף אלון
050-4916740
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20160326/febddb9b/attachment.html>
-------------- next part --------------
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list