DASH
0.3.0
|
DASH wrapper to store an dash::Array or dash::Matrix in an HDF5 file using parallel IO. More...
#include <StorageDriver.h>
Classes | |
struct | hdf5_filespace_spec |
hdf5 pattern specification for parallel IO More... | |
struct | hdf5_hyperslab_spec |
struct | hdf5_pattern_spec |
hdf5 pattern specification for parallel IO More... | |
Static Public Member Functions | |
template<typename View_t > | |
static void | write (View_t &array, std::string filename, std::string datapath, hdf5_options foptions=hdf5_options(), type_converter_fun_type to_h5_dt_converter=get_h5_datatype< typename dash::view_traits< View_t >::origin_type::value_type >) |
Store all dash::Matrix values in an HDF5 file using parallel IO. More... | |
template<typename Container_t > | |
static std::enable_if< _compatible_pattern< typename Container_t::pattern_type >) &&_is_origin_view< Container_t >), void >::type | read (Container_t &matrix, std::string filename, std::string datapath, hdf5_options foptions=hdf5_options(), type_converter_fun_type to_h5_dt_converter=get_h5_datatype< typename Container_t::value_type >) |
Read an HDF5 dataset into a dash container using parallel IO if the matrix is already allocated, the sizes have to match the HDF5 dataset sizes and all data will be overwritten. More... | |
template<class Container_t > | |
static std::enable_if< !(_compatible_pattern< typename Container_t::pattern_type >) &&_is_origin_view< Container_t >)), void >::type | read (Container_t &matrix, std::string filename, std::string datapath, hdf5_options foptions=hdf5_options(), type_converter_fun_type to_h5_dt_converter=get_h5_datatype< typename Container_t::value_type >) |
DASH wrapper to store an dash::Array or dash::Matrix in an HDF5 file using parallel IO.
All operations are collective.
Definition at line 77 of file StorageDriver.h.
|
inlinestatic |
Read an HDF5 dataset into a dash container using parallel IO if the matrix is already allocated, the sizes have to match the HDF5 dataset sizes and all data will be overwritten.
Otherwise the matrix will be allocated.
Collective operation.
matrix | Import data in this Container |
filename | Filename of HDF5 file including extension |
datapath | HDF5 Dataset in which the data is stored |
foptions | options how to open and modify data |
to_h5_dt_converter | std::function to convert native type into h5 type |
Definition at line 269 of file StorageDriver.h.
References dash::Team::All(), dart__io__hdf5__prep_mpio(), DART_OK, dash::ndim(), and dash::rank().
|
inlinestatic |
matrix | Import data in this Container |
filename | Filename of HDF5 file including extension |
datapath | HDF5 Dataset in which the data is stored |
foptions | options how to open and modify data |
to_h5_dt_converter | std::function to convert native type into h5 type |
Definition at line 393 of file StorageDriver.h.
|
inlinestatic |
Store all dash::Matrix values in an HDF5 file using parallel IO.
Collective operation.
array | Array to store |
filename | Filename of HDF5 file including extension |
datapath | HDF5 Dataset in which the data is stored |
foptions |
array | Import data in this Container |
filename | Filename of HDF5 file including extension |
datapath | HDF5 Dataset in which the data is stored |
foptions | options how to open and modify data |
to_h5_dt_converter | std::function to convert native type into h5 type |
Definition at line 122 of file StorageDriver.h.
References dart__io__hdf5__prep_mpio(), dash::Team::dart_id(), DART_OK, dash::for_each(), dash::Shared< ElementType >::get(), dash::ndim(), and dash::Shared< ElementType >::set().