Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: [OMPI users] file view with struct data type
From: Thomas Anderson (t.dt.aanderson_at_[hidden])
Date: 2011-11-25 02:34:30

I read some examples either to open file/ set file view[1][2] or to
use struct data type[3] only. How if a developer wants to set file
view with struct data type (as file type)? I notice that mpi_set_view
requires parameters `MPI_Datatype etype, MPI_Datatype filetype.'
However, for struct data type, it has multiple elementary types
(ARRAY_OF_TYPES). How can a developer determine which data type is the
elementary type in view? In addition, is it necessary (or a must have
step) to set view if one decides to open file?