Located in file: MEL.hpp
MEL::FileCreateErrorHandler(ErrorHandlerFunc func)¶Create a file error handler.
func - The function to use
MEL::FileSetErrorHandler(const File &file, const ErrorHandler &errHndl)¶Set the error handler for a file.
file - The file to attach to
errHndl - The handler to use
MEL::FileSetErrorHandler(const File &file, ErrorHandlerFunc func)¶Set the error handler for a file.
file - The file to attach to
func - The function to use
MEL::FileGetErrorHandler(const File &file)¶Get the error handler for a file.
file - The file to attach to
MEL::FileGetMode(const File &file)¶Get the mode a file was opened with.
file - The file to attach to
MEL::FileIsAtomic(const File &file)¶Is the file opened in an atomic mode?
file - The file to attach to
MEL::FileSetAtomicity(const File &file, const bool atom)¶Set the atomicity of the file handle.
file - The file to attach to
atom - Boolean value representing atomicity
MEL::FileGetByteOffset(const File &file, const Offset offset)¶Get the byte position of the file cursor relative to a given location.
file - The file to attach to
offset - The relative offset to measure byte distance against
MEL::FileGetGroup(const File &file)¶Get the comm group a file was opened as a part of.
file - The file to attach to
MEL::FileGetInfo(const File &file)¶Get the MPI_Info object attached to a file handle.
file - The file to attach to
MEL::FileSetInfo(const File &file, const Info &info)¶Set the MPI_Info object attached to a file handle.
file - The file to attach to
info - The info object to attach
MEL::FileGetPosition(const File &file)¶Get the position of the file cursor.
file - The file to attach to
Get the position of the shared file cursor.
file - The file to attach to
MEL::FileGetSize(const File &file)¶Get the size of the file in bytes.
file - The file to attach to
MEL::FileSetSize(const File &file, const Offset size)¶Set the size of the file in bytes.
file - The file to attach to
size - The size in bytes to set the file size to
MEL::FileGetTypeExtent(const File &file, const Datatype &datatype)¶Get the extent of the derived type set to the file handle.
file - The file to attach to
datatype - The derived datatype to measure the extent of
MEL::FileOpen(const Comm &comm, const std::string &path, const FileMode amode)¶Open a file and return a handle to it.
comm - The comm world to open the file with
path - The path to the desired file
amode - The file mode to open the file with
MEL::FileOpenIndividual(const std::string &path, const FileMode amode)¶Open a file on an individual process and return a handle to it.
path - The path to the desired file
amode - The file mode to open the file with
MEL::FileDelete(const std::string &path)¶Delete a file by its path.
path - The path to the file to be deleted
MEL::FileClose(File &file)¶Close the file attached to the given file handle.
file - The file handle to be closed
MEL::FilePreallocate(const File &file, const Offset fileSize)¶Preallocate the opened file to the given size on the file system.
file - The file to be preallocated
fileSize - The size of the file in bytes
MEL::FileSeek(const File &file, const Offset offset, const SeekMode seekMode = MEL::SeekMode::SET)¶Move the file cursor to a specific position.
file - The file
offset - The position to move the file cursor to
seekMode - The mode to move the cursor by
Move the shared file cursor to a specific position.
The same values must be provided by all processes
file - The shared file
offset - The position to move the file cursor to
seekMode - The mode to move the cursor by
MEL::FileSync(const File &file)¶Force all queued and pending disk operations on a file to be completed.
file - The file to be synchronized
MEL::FileSetView(const File &file, const Offset offset, const Datatype elementaryType, const Datatype fileType, const std::string &datarep = "native")¶Set the view of a file handle for subsequent read/writes.
file - The file handle
offset - Byte offset from start of the file
elementaryType - The derived type representing the type of each element to be written
fileType - The derived type representing the structure of data to be written
datarep - String argument telling the MPI implementation how data is represented. Default is “native”
MEL::FileSetView(const File &file, const FileView &view)¶Set the view of a file handle for subsequent read/writes.
file - The file handle
view - A utility structure that stores the values of a file view
MEL::FileGetView(const File &file, Offset &offset, Datatype &elementaryType, Datatype &fileType, std::string &datarep)¶Get the view attached to a file handle.
file - The file handle
offset - Byte offset from start of the file
elementaryType - The derived type representing the type of each element to be written
fileType - The derived type representing the structure of data to be written
datarep - String argument telling the MPI implementation how data is represented. Default is “native”
MEL::FileGetView(const File &file)¶Get the view attached to a file handle.
file - The file handle
MEL::FileWrite(const File &file, const void *sptr, const int snum, const Datatype &datatype)¶Write to file from a single process.
file - The file handle
sptr - Pointer to the memory to be written
snum - The number of elements to write
datatype - The derived type representing the elements to be written
MEL::FileWriteAll(const File &file, const void *sptr, const int snum, const Datatype &datatype)¶Write to file from all processes that opened the file.
file - The file handle
sptr - Pointer to the memory to be written
snum - The number of elements to write
datatype - The derived type representing the elements to be written
MEL::FileWriteAt(const File &file, const Offset offset, const void *sptr, const int snum, const Datatype &datatype)¶Write to file from a single process at the desired offset.
file - The file handle
offset - Byte offset into the file to write at
sptr - Pointer to the memory to be written
snum - The number of elements to write
datatype - The derived type representing the elements to be written
MEL::FileWriteAtAll(const File &file, const Offset offset, const void *sptr, const int snum, const Datatype &datatype)¶Write to file from all processes that opened the file at the desired offset.
file - The file handle
offset - Byte offset into the file to write at
sptr - Pointer to the memory to be written
snum - The number of elements to write
datatype - The derived type representing the elements to be written
MEL::FileWriteOrdered(const File &file, const void *sptr, const int snum, const Datatype &datatype)¶Write to file from all processes that opened the file in sequence.
file - The file handle
sptr - Pointer to the memory to be written
snum - The number of elements to write
datatype - The derived type representing the elements to be written
Write to file from any processes that opened the file in parallel.
file - The file handle
sptr - Pointer to the memory to be written
snum - The number of elements to write
datatype - The derived type representing the elements to be written
MEL::FileIwrite(const File &file, const void *sptr, const int snum, const Datatype &datatype)¶Non-Blocking.
Write to file from a single processes
file - The file handle
sptr - Pointer to the memory to be written
snum - The number of elements to write
datatype - The derived type representing the elements to be written
MEL::FileIwriteAt(const File &file, const Offset offset, const void *sptr, const int snum, const Datatype &datatype)¶Non-Blocking.
Write to file from a single process at the desired offset
file - The file handle
offset - Byte offset into the file to write to
sptr - Pointer to the memory to be written
snum - The number of elements to write
datatype - The derived type representing the elements to be written
Non-Blocking.
Write to file from any processes that opened the file in parallel
file - The file handle
sptr - Pointer to the memory to be written
snum - The number of elements to write
datatype - The derived type representing the elements to be written
MEL::FileRead(const File &file, void *rptr, const int rnum, const Datatype &datatype)¶Read from file from a single process.
file - The file handle
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
datatype - The derived type representing the elements to be read
MEL::FileReadAll(const File &file, void *rptr, const int rnum, const Datatype &datatype)¶Read from file from all processes that opened the file.
file - The file handle
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
datatype - The derived type representing the elements to be read
MEL::FileReadAt(const File &file, const Offset offset, void *rptr, const int rnum, const Datatype &datatype)¶Read from file from a single process at the desired offset.
file - The file handle
offset - Byte offset into the file to read from
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
datatype - The derived type representing the elements to be read
MEL::FileReadAtAll(const File &file, const Offset offset, void *rptr, const int rnum, const Datatype &datatype)¶Read from file from all processes that opened the file at the desired offset.
file - The file handle
offset - Byte offset into the file to read from
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
datatype - The derived type representing the elements to be read
MEL::FileReadOrdered(const File &file, void *rptr, const int rnum, const Datatype &datatype)¶Read from file from all processes that opened the file in sequence.
file - The file handle
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
datatype - The derived type representing the elements to be read
Read from file from any processes that opened the file in parallel.
file - The file handle
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
datatype - The derived type representing the elements to be read
MEL::FileIread(const File &file, void *rptr, const int rnum, const Datatype &datatype)¶Non-Blocking.
Read from file from a single process
file - The file handle
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
datatype - The derived type representing the elements to be read
MEL::FileIreadAt(const File &file, const Offset offset, void *rptr, const int rnum, const Datatype &datatype)¶Non-Blocking.
Read from file from a single process at the desired offset
file - The file handle
offset - Byte offset into the file to read from
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
datatype - The derived type representing the elements to be read
Non-Blocking.
Read from file from any process that opened the file in parallel
file - The file handle
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
datatype - The derived type representing the elements to be read
MEL::FileWrite(const File &file, const T *sptr, const int snum)¶Write to file from a single process.
Element size determined by template type
file - The file handle
sptr - Pointer to the memory to be written
snum - The number of elements to write
MEL::FileWriteAt(const File &file, const Offset offset, const T *sptr, const int snum)¶Write to file from a single process at the desired offset.
Element size determined by template type
file - The file handle
offset - Byte offset into the file to write to
sptr - Pointer to the memory to be written
snum - The number of elements to write
MEL::FileWriteAll(const File &file, const T *sptr, const int snum)¶Write to file from all processes that opened the file.
Element size determined by template type
file - The file handle
sptr - Pointer to the memory to be written
snum - The number of elements to write
MEL::FileWriteAtAll(const File &file, const Offset offset, const T *sptr, const int snum)¶Write to file from all processes that opened the file at the desired offset.
Element size determined by template type
file - The file handle
offset - Byte offset into the file to write to
sptr - Pointer to the memory to be written
snum - The number of elements to write
MEL::FileWriteOrdered(const File &file, const T *sptr, const int snum)¶Write to file from all processes that opened the file in sequence.
Element size determined by template type
file - The file handle
sptr - Pointer to the memory to be written
snum - The number of elements to write
Write to file from any processes that opened the file in parallel.
Element size determined by template type
file - The file handle
sptr - Pointer to the memory to be written
snum - The number of elements to write
MEL::FileRead(const File &file, T *rptr, const int rnum)¶Read from file from a single process.
Element size determined by template type
file - The file handle
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
MEL::FileReadAt(const File &file, const Offset offset, T *rptr, const int rnum)¶Read from file from a single process at the desired offset.
Element size determined by template type
file - The file handle
offset - Byte offset into the file to read from
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
MEL::FileReadAll(const File &file, T *rptr, const int rnum)¶Read from file from all processes that opened the file.
Element size determined by template type
file - The file handle
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
MEL::FileReadAtAll(const File &file, const Offset offset, T *rptr, const int rnum)¶Read from file from all processes that opened the file at the desired offset.
Element size determined by template type
file - The file handle
offset - Byte offset into the file to read from
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
MEL::FileReadOrdered(const File &file, T *rptr, const int rnum)¶Read from file from all processes that opened the file in sequence.
Element size determined by template type
file - The file handle
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
Read from file from any processes that opened the file in parallel.
Element size determined by template type
file - The file handle
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
MEL::FileIwrite(const File &file, const T *sptr, const int snum)¶Non-Blocking.
Write to file from a single process. Element size determined by template type
file - The file handle
sptr - Pointer to the memory to be written
snum - The number of elements to write
MEL::FileIwriteAt(const File &file, const Offset offset, const T *sptr, const int snum)¶Non-Blocking.
Write to file from all processes that opened the file at the desired offset. Element size determined by template type
file - The file handle
offset - Byte offset into the file to write to
sptr - Pointer to the memory to be written
snum - The number of elements to write
Non-Blocking.
Write to file from any processes that opened the file in parallel. Element size determined by template type
file - The file handle
sptr - Pointer to the memory to be written
snum - The number of elements to write
MEL::FileIread(const File &file, T *rptr, const int rnum)¶Non-Blocking.
Read from file from a single process. Element size determined by template type
file - The file handle
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
MEL::FileIreadAt(const File &file, const Offset offset, T *rptr, const int rnum)¶Non-Blocking.
Read from file from a single process at the desired offset. Element size determined by template type
file - The file handle
offset - Byte offset into the file to read from
rptr - Pointer to the memory to be read into
rnum - The number of elements to read
Non-Blocking.
Read from file from any processes that opened the file in parallel. Element size determined by template type
file - The file handle
rptr - Pointer to the memory to be read into
rnum - The number of elements to read