[mpich-discuss] How to access members of MPI_File struct
Dave Goodell
goodell at mcs.anl.gov
Thu Aug 30 13:30:37 CDT 2012
No, you can't use anything like method 2. Just use method 1.
-Dave
On Aug 30, 2012, at 1:05 AM CDT, Ammar Ahmad Awan wrote:
> Dear All,
>
> I am using a simple program to access MPI_File attributes. I know that the API provides functions such as MPI_File_get_atomicity( ) but is there a way to access them directly.
>
> Example:
>
> int atomicity;
>
> // method 1
> printf("atomicity : %d", MPI_File_get_atomicity(fh,&atomicity));
>
> // method 2
> printf("atomicity : %d", fh->atomicity);
>
> Method 1 in the above code works fine as expected but method 2 give me the following error
>
> error: dereferencing pointer to incomplete type
>
> Can anybody guide me on how to solve this problem.
>
> Kind Regards
> -- Ammar
> ----------------------------------------------------------------------
> Masters Student
> Dept. Of Computer Engineering,
> Kyung Hee University
> ----------------------------------------------------------------------
> _______________________________________________
> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
More information about the mpich-discuss
mailing list