I/O
File manipulation
MPI.File.open — FunctionMPI.File.open(comm::Comm, filename::AbstractString; keywords...)Open the file identified by filename. This is a collective operation on comm.
Supported keywords are as follows:
read,write,create,appendhave the same behaviour and defaults asBase.open.sequential: file will only be accessed sequentially (default:false)uniqueopen: file will not be concurrently opened elsewhere (default:false)deleteonclose: delete file on close (default:false)
Any additional keywords are passed via an Info object, and are implementation dependent.
External links
Views
MPI.File.set_view! — FunctionMPI.File.set_view!(file::FileHandle, disp::Integer, etype::Datatype, filetype::Datatype, datarep::AbstractString; kwargs...)Set the current process's view of file.
The start of the view is set to disp; the type of data is set to etype; the distribution of data to processes is set to filetype; and the representation of data in the file is set to datarep: one of "native" (default), "internal", or "external32".
External links
Consistency
MPI.File.sync — FunctionMPI.File.sync(fh::FileHandle)A collective operation causing all previous writes to fh by the calling process to be transferred to the storage device. If other processes have made updates to the storage device, then all such updates become visible to subsequent reads of fh by the calling process.
External links
Data access
Explicit offsets
MPI.File.read_at! — FunctionMPI.File.read_at!(file::FileHandle, offset::Integer, data)Reads from file at position offset into data. data can be a Buffer, or any object for which Buffer(data) is defined.
See also
MPI.File.read_at_all!for the collective operation
External links
MPI.File.read_at_all! — FunctionMPI.File.read_at_all!(file::FileHandle, offset::Integer, data)Reads from file at position offset into data. data can be a Buffer, or any object for which Buffer(data) is defined. This is a collective operation, so must be called on all ranks in the communicator on which file was opened.
See also
MPI.File.read_at!for the noncollective operation
External links
MPI.File.write_at — FunctionMPI.File.write_at(file::FileHandle, offset::Integer, data)Writes data to file at position offset. data can be a Buffer, or any object for which Buffer_send(data) is defined.
See also
MPI.File.write_at_allfor the collective operation
External links
MPI.File.write_at_all — FunctionMPI.File.write_at_all(file::FileHandle, offset::Integer, data)Writes from data to file at position offset. data can be a Buffer, or any object for which Buffer_send(data) is defined. This is a collective operation, so must be called on all ranks in the communicator on which file was opened.
See also
MPI.File.write_atfor the noncollective operation
External links