Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Accessing data member of MPI_File struct
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2012-08-30 07:48:38


On Aug 30, 2012, at 5:05 AM, Ammar Ahmad Awan wrote:

> int atomicity;
>
> // method 1
> printf("atomicity : %d", MPI_File_get_atomicity(fh,&atomicity));

I think you want:

int atomicity;
MPI_File_get_atomicity(fh, &atomicity);
printf("atomicity: %d\n", atomicity);

MPI_File is an opaque structure; you won't be able to access any of the fields inside of it directly.

-- 
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/