PIO
2.5.4
|
Performing I/O is straightforward when a small number of processors are being used.
Parallel I/O does not scale to thousands of processors, because the parallel disk systems do not support the bandwitdh to allow thousands of processors to access the disk at the same time. As a result, most of the processors will have to wait to do I/O.
An obvious solution is to designate a small number of processors to do I/O, and use the rest for computation.
PIO provides a netCDF-like API which provides this service. User code is written as if parallel I/O is being used from every processor, but, under the hood, PIO uses the I/O processors to do all data access.
With Intracomm Mode, the I/O processors are a subset of the computational processors, and only one computational unit is supported. In Async Mode, the I/O processors are dedicated to I/O, and do not perform computation. Also, more than one computational unit may be designated.
The user initializes the PIO IO System, designating some processors for I/O, others for computation.
PIO decompositions and distributed arrays allow the code to be written in terms of the local, distributed sub-array (see Describing decompositions). PIO handles the stitching of all data into the correct global space in a netCDF variable.
PIO also allows for the creation of multiple computational units. Each computational unit consists of many processors. I/O for all computational units is accomplished through one set of dedicated I/O processors (see Initializing the IO System).
PIO uses netcdf and pnetcdf to read and write the netCDF files (see Installing PIO).
PIO calls are collective. A MPI communicator is set in a call to Initialize an IOSystem and all tasks associated with that communicator must participate in all subsequent calls to PIO. An application can make multiple calls to Initialize an IOSystem in order to support multiple MPI communicators.
Begin by getting and unpacking the most recent release of PIO from gitHub and installing on your system as per the instructions in the Installation document. Take a look at examples of PIO usage in both complex and simple test programs in the [Examples](Examples) document. Finally, read through the FAQ to see if any remaining questions can be answered.