DIY  3.0
data-parallel out-of-core C++ library
 All Classes Namespaces Functions Typedefs Groups Pages
Public Types | Public Member Functions | List of all members
diy::mpi::io::file Class Reference

Wraps MPI file IO. More...

#include <diy/mpi/io.hpp>

Public Types

enum  {
  rdonly = MPI_MODE_RDONLY, rdwr = MPI_MODE_RDWR, wronly = MPI_MODE_WRONLY, create = MPI_MODE_CREATE,
  exclusive = MPI_MODE_EXCL, delete_on_close = MPI_MODE_DELETE_ON_CLOSE, unique_open = MPI_MODE_UNIQUE_OPEN, sequential = MPI_MODE_SEQUENTIAL,
  append = MPI_MODE_APPEND
}
 

Public Member Functions

 file (const communicator &comm, const std::string &filename, int mode)
 
void close ()
 
offset size () const
 
void resize (offset size)
 
void read_at (offset o, char *buffer, size_t size)
 
void read_at_all (offset o, char *buffer, size_t size)
 
void write_at (offset o, const char *buffer, size_t size)
 
void write_at_all (offset o, const char *buffer, size_t size)
 
template<class T >
void read_at (offset o, std::vector< T > &data)
 
template<class T >
void read_at_all (offset o, std::vector< T > &data)
 
template<class T >
void write_at (offset o, const std::vector< T > &data)
 
template<class T >
void write_at_all (offset o, const std::vector< T > &data)
 
const communicatorcomm () const
 
MPI_File & handle ()
 

Detailed Description

Wraps MPI file IO.

Examples:
io/test-io.cpp, reduce/sample-sort.cpp, and reduce/sort.cpp.

The documentation for this class was generated from the following file: