Shared File Pointers
#include "mpi.h"
// C++ example
int main(int argc, char *argv[])
{
int buf[1000];
MPI::File fh;
MPI::Init();
MPI::File fh = MPI::File::Open(MPI::COMM_WORLD,
"/pfs/datafile", MPI::MODE_RDONLY, MPI::INFO_NULL);
fh.Write_shared(buf, 1000, MPI_INT);
fh.Close();
MPI::Finalize();
return 0;
}
Previous slide
Next slide
Back to first slide
View graphic version