|
QDP++
|
#include <qdp_hdf5.h>
Public Member Functions | |
| virtual void | open (const std::string &filename)=0 |
| int | close () |
| void | set_stripesize (const int &stripesizee) |
| void | set_profiling (const bool &profilee) |
| std::string | pwd () const |
| std::string | parentDir () const |
| void | pop () |
| void | cd (const std::string &dirname) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, short &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, unsigned short &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, int &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, unsigned int &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, unsigned long long &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, float &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, double &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, std::string &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< short > &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< unsigned short > &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< int > &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< unsigned int > &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< unsigned long long > &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< float > &datum) |
| void | readAttribute (const std::string &obj_name, const std::string &attr_name, multi1d< double > &datum) |
| void | read (const std::string &obj_name, short &datum) |
| void | read (const std::string &obj_name, unsigned short &datum) |
| void | read (const std::string &obj_name, int &datum) |
| void | read (const std::string &obj_name, unsigned int &datum) |
| void | read (const std::string &obj_name, unsigned long long &datum) |
| void | read (const std::string &obj_name, float &datum) |
| void | read (const std::string &obj_name, double &datum) |
| void | read (const std::string &dataname, std::string &datum) |
| void | read (const std::string &obj_name, multi1d< short > &datum) |
| void | read (const std::string &obj_name, multi1d< unsigned short > &datum) |
| void | read (const std::string &obj_name, multi1d< int > &datum) |
| void | read (const std::string &obj_name, multi1d< unsigned int > &datum) |
| void | read (const std::string &obj_name, multi1d< unsigned long long > &datum) |
| void | read (const std::string &obj_name, multi1d< float > &datum) |
| void | read (const std::string &obj_name, multi1d< double > &datum) |
| void | read (const std::string &obj_name, multi2d< short > &datum) |
| void | read (const std::string &obj_name, multi2d< unsigned short > &datum) |
| void | read (const std::string &obj_name, multi2d< int > &datum) |
| void | read (const std::string &obj_name, multi2d< unsigned int > &datum) |
| void | read (const std::string &obj_name, multi2d< unsigned long long > &datum) |
| void | read (const std::string &obj_name, multi2d< float > &datum) |
| void | read (const std::string &obj_name, multi2d< double > &datum) |
| template<class T> | |
| void | read (const std::string &name, OScalar< T > &scalar) |
| template<class T> | |
| void | read (const std::string &name, multi1d< OScalar< T > > &scalararray) |
| template<class T> | |
| void | read (const std::string &name, OLattice< T > &field, const HDF5Base::accessmode &accmode=HDF5Base::transpose_order) |
| template<class T> | |
| void | read (const std::string &name, multi1d< OLattice< T > > &fieldarray, const HDF5Base::accessmode &accmode=HDF5Base::transpose_order) |
| void | readQlua (const std::string &name, multi1d< LatticeColorMatrixD3 > &field) |
| void | readQlua (const std::string &name, LatticeDiracPropagatorD3 &prop) |
| template<> | |
| void | read (const std::string &dataname, ComplexF &datum) |
| template<> | |
| void | read (const std::string &dataname, ComplexD &datum) |
| template<> | |
| void | read (const std::string &dataname, multi1d< ComplexF > &datum) |
| template<> | |
| void | read (const std::string &dataname, multi1d< ComplexD > &datum) |
| template<> | |
| void | read (const std::string &name, LatticeColorMatrixD3 &field, const HDF5Base::accessmode &accmode) |
| template<> | |
| void | read (const std::string &name, LatticeDiracPropagatorF3 &field, const HDF5Base::accessmode &accmode) |
| template<> | |
| void | read (const std::string &name, LatticeDiracPropagatorD3 &field, const HDF5Base::accessmode &accmode) |
| template<> | |
| void | read (const std::string &name, multi1d< LatticeColorMatrixD3 > &field, const HDF5Base::accessmode &accmode) |
Static Public Member Functions | |
| static bool | check_exists (const std::string &filename) |
Protected Member Functions | |
| HDF5 (const long int &stripesizee=-1, const long int &maxalign=0) | |
| std::string | getNameById (hid_t id) const |
| void | tokenize (const ::std::string &str, ::std::vector< ::std::string > &tokens, const ::std::string &delimiters) |
| std::vector< std::string > | splitPathname (const std::string &name) |
| bool | objectExists (const std::string &name) |
| bool | objectExists (hid_t loc_id, const std::string &name) |
| std::string | objectType (const ::std::string &name) |
| std::string | objectType (hid_t loc_id, const ::std::string &name) |
| void | HDF5_error_exit (const std::string &message) |
| int | prefetchLatticeCoordinates () |
| template<class T> | |
| void | CvtToLayout (OLattice< T > &field, void *buf, const unsigned int &nodeSites, const unsigned int &elemSize) |
| template<class T> | |
| void | CvtToLayout (multi1d< OLattice< T > > &fieldarray, void *buf, const unsigned int &nodeSites, const unsigned int &arraySize, const unsigned int &elemSize) |
| template<class T> | |
| void | CvtToHost (void *buf, const OLattice< T > &field, const unsigned int &nodeSites, const unsigned int &elemSize) |
| template<class T> | |
| void | CvtToHost (void *buf, const multi1d< OLattice< T > > &fieldarray, const unsigned int &nodeSites, const unsigned int &arraySize, const unsigned int &elemSize) |
| hid_t | createComplexType (const unsigned int &float_size) |
| bool | checkComplexType (const hid_t &type_id, hid_t &base_type_id) |
| hid_t | createColorMatrixType (const hid_t &complex_id, const unsigned int &rank) |
| bool | checkColorMatrixType (const hid_t &type_id, const unsigned int &rank, hid_t &base_type_id) |
| hid_t | createPropagatorType (const hid_t &colmat_id, const unsigned int &spinrank) |
| bool | checkDiracPropagatorType (const hid_t &type_id, const unsigned int &spinrank, const unsigned int &colorrank, hid_t &base_type_id) |
| template<typename ctype> | |
| void | rdAtt (const std::string &obj_name, const std::string &attr_name, ctype &datum, const H5T_class_t &hdfclass, const bool &sign, const bool &rigid_checks=true) |
| template<typename ctype> | |
| void | rdAtt (const std::string &obj_name, const std::string &attr_name, multi1d< ctype > &datum, const H5T_class_t &hdfclass, const bool &sign, const bool &rigid_checks=true) |
| template<typename ctype> | |
| void | rd (const std::string &dataname, ctype &datum, const H5T_class_t &hdfclass, const bool &sign, const bool &rigid_checks=true) |
| template<typename ctype> | |
| void | rd (const std::string &dataname, multi1d< ctype > &datum, const H5T_class_t &hdfclass, const bool &sign, const bool &rigid_checks=true) |
| template<typename ctype> | |
| void | rd (const std::string &dataname, multi2d< ctype > &datum, const H5T_class_t &hdfclass, const bool &sign, const bool &rigid_checks=true) |
| void | readPrepare (const std::string &name, hid_t &type_id) |
| void | readPrepareLattice (const std::string &name, hid_t &type_id, multi1d< ullong > &sizes) |
| void | readLattice (const std::string &name, const hid_t &type_id, const hid_t &base_type_id, const ullong &obj_size, const ullong &tot_size, char *buf, bool invert_order=true) |
Static Protected Member Functions | |
| static hid_t | errorHandler (hid_t errstack, void *unused) |
Protected Attributes | |
| hid_t | error_stack |
| hid_t | file_id |
| hid_t | file_comm |
| hid_t | current_group |
| multi1d< int > | reordermap |
| bool | isprefetched |
| long int | stripesize |
| long int | maxalign |
| bool | par_init |
| bool | profile |
| MPI_Comm * | mpicomm |
HDF5 reader class.
This is used to read data from an HDF5 file using.
Definition at line 41 of file qdp_hdf5.h.
|
explicitprotected |
References maxalign.
| void QDP::HDF5::cd | ( | const std::string & | dirname | ) |
|
static |
|
protected |
|
protected |
|
protected |
| int QDP::HDF5::close | ( | ) |
Referenced by HDF5_error_exit().
|
protected |
|
protected |
|
protected |
|
inlineprotected |
Definition at line 118 of file qdp_hdf5.h.
References reordermap.
|
inlineprotected |
Definition at line 110 of file qdp_hdf5.h.
References QDP::OLattice< T >::elem(), and reordermap.
Referenced by QDP::HDF5Writer::write(), and QDP::HDF5Writer::write().
|
inlineprotected |
Definition at line 99 of file qdp_hdf5.h.
References reordermap.
|
inlineprotected |
Definition at line 91 of file qdp_hdf5.h.
References QDP::OLattice< T >::elem(), and reordermap.
|
staticprotected |
|
protected |
|
inlineprotected |
Definition at line 76 of file qdp_hdf5.h.
References close(), and QDP::QDP_error_exit().
Referenced by rd(), rd(), rd(), rdAtt(), rdAtt(), read(), read(), read(), read(), QDP::HDF5Writer::write(), and QDP::HDF5Writer::write().
|
protected |
|
protected |
|
protected |
|
protected |
|
pure virtual |
Implemented in QDP::HDF5Reader, and QDP::HDF5Writer.
| std::string QDP::HDF5::parentDir | ( | ) | const |
| void QDP::HDF5::pop | ( | ) |
|
protected |
| std::string QDP::HDF5::pwd | ( | ) | const |
|
inlineprotected |
Definition at line 272 of file qdp_hdf5.h.
References current_group, HDF5_error_exit(), and objectExists().
|
inlineprotected |
Definition at line 325 of file qdp_hdf5.h.
References current_group, HDF5_error_exit(), objectExists(), and QDP::multi1d< T >::resize().
|
inlineprotected |
Definition at line 393 of file qdp_hdf5.h.
References current_group, HDF5_error_exit(), objectExists(), and QDP::multi2d< T >::resize().
|
inlineprotected |
Definition at line 157 of file qdp_hdf5.h.
References current_group, HDF5_error_exit(), and objectExists().
|
inlineprotected |
Definition at line 207 of file qdp_hdf5.h.
References current_group, HDF5_error_exit(), objectExists(), and QDP::multi1d< T >::resize().
| void QDP::HDF5::read | ( | const std::string & | dataname, |
| ComplexD & | datum ) |
References read().
| void QDP::HDF5::read | ( | const std::string & | dataname, |
| ComplexF & | datum ) |
References read().
References read().
References read().
| void QDP::HDF5::read | ( | const std::string & | dataname, |
| std::string & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | name, |
| LatticeColorMatrixD3 & | field, | ||
| const HDF5Base::accessmode & | accmode ) |
References read().
| void QDP::HDF5::read | ( | const std::string & | name, |
| LatticeDiracPropagatorD3 & | field, | ||
| const HDF5Base::accessmode & | accmode ) |
References read().
| void QDP::HDF5::read | ( | const std::string & | name, |
| LatticeDiracPropagatorF3 & | field, | ||
| const HDF5Base::accessmode & | accmode ) |
References read().
| void QDP::HDF5::read | ( | const std::string & | name, |
| multi1d< LatticeColorMatrixD3 > & | field, | ||
| const HDF5Base::accessmode & | accmode ) |
References read().
|
inline |
Definition at line 767 of file qdp_hdf5.h.
References QDP::QDPIO::cout, CvtToLayout(), QDP::StopWatch::getTimeInSeconds(), HDF5_error_exit(), QDP::Layout::lattSize(), QDP::HDF5Base::maintain_order, QDP::Nd, QDP::Layout::nodeNumber(), profile, readLattice(), readPrepareLattice(), QDP::Layout::sitesOnNode(), QDP::multi1d< T >::size(), QDP::StopWatch::start(), QDP::StopWatch::stop(), QDP::HDF5Base::transpose_order, and QDP::Layout::vol().
|
inline |
Definition at line 604 of file qdp_hdf5.h.
References HDF5_error_exit(), read(), readPrepareLattice(), and QDP::multi1d< T >::size().
|
inline |
Definition at line 653 of file qdp_hdf5.h.
References QDP::QDPIO::cout, CvtToLayout(), QDP::StopWatch::getTimeInSeconds(), HDF5_error_exit(), QDP::Layout::lattSize(), QDP::HDF5Base::maintain_order, QDP::Nd, QDP::Layout::nodeNumber(), profile, readLattice(), readPrepareLattice(), QDP::Layout::sitesOnNode(), QDP::multi1d< T >::size(), QDP::StopWatch::start(), QDP::StopWatch::stop(), QDP::HDF5Base::transpose_order, and QDP::Layout::vol().
|
inline |
Definition at line 565 of file qdp_hdf5.h.
References QDP::OScalar< T >::elem(), HDF5_error_exit(), read(), readPrepareLattice(), and QDP::multi1d< T >::size().
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| double & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| float & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| int & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi1d< double > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi1d< float > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi1d< int > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi1d< short > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi1d< unsigned int > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi1d< unsigned long long > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi1d< unsigned short > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi2d< double > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi2d< float > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi2d< int > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi2d< short > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi2d< unsigned int > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi2d< unsigned long long > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| multi2d< unsigned short > & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| short & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| unsigned int & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| unsigned long long & | datum ) |
| void QDP::HDF5::read | ( | const std::string & | obj_name, |
| unsigned short & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| double & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| float & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| int & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| multi1d< double > & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| multi1d< float > & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| multi1d< int > & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| multi1d< short > & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| multi1d< unsigned int > & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| multi1d< unsigned long long > & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| multi1d< unsigned short > & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| short & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| std::string & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| unsigned int & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| unsigned long long & | datum ) |
| void QDP::HDF5::readAttribute | ( | const std::string & | obj_name, |
| const std::string & | attr_name, | ||
| unsigned short & | datum ) |
|
protected |
| void QDP::HDF5::readQlua | ( | const std::string & | name, |
| LatticeDiracPropagatorD3 & | prop ) |
| void QDP::HDF5::readQlua | ( | const std::string & | name, |
| multi1d< LatticeColorMatrixD3 > & | field ) |
|
inline |
Definition at line 489 of file qdp_hdf5.h.
References profile.
|
inline |
Definition at line 486 of file qdp_hdf5.h.
References stripesize.
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 44 of file qdp_hdf5.h.
|
protected |
Definition at line 44 of file qdp_hdf5.h.
|
protected |
Definition at line 44 of file qdp_hdf5.h.
|
protected |
Definition at line 46 of file qdp_hdf5.h.
|
protected |
Definition at line 49 of file qdp_hdf5.h.
Referenced by HDF5(), QDP::HDF5Reader::HDF5Reader(), and QDP::HDF5Writer::HDF5Writer().
|
protected |
Definition at line 55 of file qdp_hdf5.h.
|
protected |
Definition at line 52 of file qdp_hdf5.h.
|
protected |
Definition at line 53 of file qdp_hdf5.h.
Referenced by read(), read(), set_profiling(), QDP::HDF5Writer::write(), and QDP::HDF5Writer::write().
|
protected |
Definition at line 45 of file qdp_hdf5.h.
Referenced by CvtToHost(), CvtToHost(), CvtToLayout(), and CvtToLayout().
|
protected |
Definition at line 49 of file qdp_hdf5.h.
Referenced by QDP::HDF5Reader::HDF5Reader(), QDP::HDF5Writer::HDF5Writer(), and set_stripesize().