IOR
|
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <hdf5.h>
#include <mpi.h>
#include "aiori.h"
#include "utilities.h"
#include "iordef.h"
Go to the source code of this file.
Data Structures | |
struct | HDF5_options_t |
Macros | |
#define | H5_USE_16_API |
#define | NUM_DIMS 1 /* number of dimensions to data set */ |
#define | HDF5_CHECK(HDF5_RETURN, MSG) |
Functions | |
static IOR_offset_t | SeekOffset (void *, IOR_offset_t, aiori_mod_opt_t *) |
static void | SetupDataSet (void *, int flags, aiori_mod_opt_t *) |
static aiori_fd_t * | HDF5_Create (char *, int flags, aiori_mod_opt_t *) |
static aiori_fd_t * | HDF5_Open (char *, int flags, aiori_mod_opt_t *) |
static IOR_offset_t | HDF5_Xfer (int, aiori_fd_t *, IOR_size_t *, IOR_offset_t, IOR_offset_t, aiori_mod_opt_t *) |
static void | HDF5_Close (aiori_fd_t *, aiori_mod_opt_t *) |
static void | HDF5_Delete (char *, aiori_mod_opt_t *) |
static char * | HDF5_GetVersion () |
static void | HDF5_Fsync (aiori_fd_t *, aiori_mod_opt_t *) |
static IOR_offset_t | HDF5_GetFileSize (aiori_mod_opt_t *, char *) |
static int | HDF5_Access (const char *, int, aiori_mod_opt_t *) |
static void | HDF5_init_xfer_options (aiori_xfer_hint_t *params) |
static int | HDF5_check_params (aiori_mod_opt_t *options) |
static option_help * | HDF5_options (aiori_mod_opt_t **init_backend_options, aiori_mod_opt_t *init_values) |
Variables | |
ior_aiori_t | hdf5_aiori |
static hid_t | xferPropList |
hid_t | dataSet |
hid_t | dataSpace |
hid_t | fileDataSpace |
hid_t | memDataSpace |
int | newlyOpenedFile |
static aiori_xfer_hint_t * | hints = NULL |
#define H5_USE_16_API |
Definition at line 24 of file aiori-HDF5.c.
#define HDF5_CHECK | ( | HDF5_RETURN, | |
MSG | |||
) |
Definition at line 67 of file aiori-HDF5.c.
Referenced by HDF5_Close(), HDF5_Open(), HDF5_Xfer(), SeekOffset(), and SetupDataSet().
#define NUM_DIMS 1 /* number of dimensions to data set */ |
Definition at line 32 of file aiori-HDF5.c.
Referenced by HDF5_Open(), and SeekOffset().
|
static |
Definition at line 675 of file aiori-HDF5.c.
References aiori_xfer_hint_t::dryRun, and MPIIO_Access().
|
static |
Definition at line 178 of file aiori-HDF5.c.
References ERR, ERRF, HDF5_options_t::individualDataSets, HDF5_options_t::noFill, o, HDF5_options_t::setAlignment, and WARN.
|
static |
Definition at line 507 of file aiori-HDF5.c.
References dataSet, dataSpace, aiori_xfer_hint_t::dryRun, fileDataSpace, HDF5_CHECK, memDataSpace, and xferPropList.
|
static |
Definition at line 202 of file aiori-HDF5.c.
References HDF5_Open().
|
static |
Definition at line 528 of file aiori-HDF5.c.
References aiori_xfer_hint_t::dryRun, and MPIIO_Delete().
|
static |
Definition at line 500 of file aiori-HDF5.c.
|
static |
Definition at line 665 of file aiori-HDF5.c.
References aiori_xfer_hint_t::dryRun, and MPIIO_GetFileSize().
|
static |
Definition at line 539 of file aiori-HDF5.c.
References WARN.
|
static |
HDF5 utilizes the MPIIO backend too, so init hints there
Definition at line 172 of file aiori-HDF5.c.
References MPIIO_xfer_hints().
|
static |
Definition at line 210 of file aiori-HDF5.c.
References aiori_xfer_hint_t::blockSize, aiori_xfer_hint_t::collective, HDF5_options_t::collective_md, dataSpace, aiori_xfer_hint_t::dryRun, ERR, aiori_xfer_hint_t::filePerProc, HDF5_CHECK, HDF5_options_t::hintsFileName, HDF5_options_t::individualDataSets, IOR_APPEND, IOR_CREAT, IOR_DIRECT, IOR_EXCL, IOR_RDONLY, IOR_RDWR, IOR_TRUNC, IOR_WRONLY, memDataSpace, MPI_CHECK, newlyOpenedFile, NULL, NUM_DIMS, aiori_xfer_hint_t::numTasks, o, rank, HDF5_options_t::setAlignment, SetHints(), HDF5_options_t::showHints, ShowHints(), testComm, aiori_xfer_hint_t::transferSize, TRUE, WARN, and xferPropList.
Referenced by HDF5_Create().
|
static |
Definition at line 110 of file aiori-HDF5.c.
References HDF5_options_t::collective_md, HDF5_options_t::hintsFileName, HDF5_options_t::individualDataSets, LAST_OPTION, HDF5_options_t::noFill, NULL, o, OPTION_FLAG, OPTION_OPTIONAL_ARGUMENT, HDF5_options_t::setAlignment, and HDF5_options_t::showHints.
|
static |
Definition at line 421 of file aiori-HDF5.c.
References aiori_xfer_hint_t::blockSize, dataSet, aiori_xfer_hint_t::dryRun, FALSE, fileDataSpace, aiori_xfer_hint_t::filePerProc, HDF5_CHECK, IOR_CREAT, IOR_RDWR, memDataSpace, newlyOpenedFile, aiori_xfer_hint_t::numTasks, rank, rankOffset, READCHECK, SeekOffset(), SetupDataSet(), TRUE, WRITE, and xferPropList.
|
static |
Definition at line 561 of file aiori-HDF5.c.
References aiori_xfer_hint_t::blockSize, dataSet, fileDataSpace, aiori_xfer_hint_t::filePerProc, HDF5_CHECK, HDF5_options_t::individualDataSets, NUM_DIMS, aiori_xfer_hint_t::numTasks, o, aiori_xfer_hint_t::transferSize, and TRUE.
Referenced by HDF5_Xfer().
|
static |
Definition at line 602 of file aiori-HDF5.c.
References dataSet, dataSpace, ERR, HDF5_CHECK, HDF5_options_t::individualDataSets, IOR_CREAT, MAX_STR, newlyOpenedFile, HDF5_options_t::noFill, aiori_xfer_hint_t::numTasks, o, rank, rankOffset, TRUE, verbose, VERBOSE_1, and WARN.
Referenced by HDF5_Xfer().
hid_t dataSet |
Definition at line 163 of file aiori-HDF5.c.
Referenced by HDF5_Close(), HDF5_Xfer(), SeekOffset(), and SetupDataSet().
hid_t dataSpace |
Definition at line 164 of file aiori-HDF5.c.
Referenced by HDF5_Close(), HDF5_Open(), and SetupDataSet().
hid_t fileDataSpace |
Definition at line 165 of file aiori-HDF5.c.
Referenced by HDF5_Close(), HDF5_Xfer(), and SeekOffset().
ior_aiori_t hdf5_aiori |
Definition at line 141 of file aiori-HDF5.c.
|
static |
Definition at line 170 of file aiori-HDF5.c.
hid_t memDataSpace |
Definition at line 166 of file aiori-HDF5.c.
Referenced by HDF5_Close(), HDF5_Open(), and HDF5_Xfer().
int newlyOpenedFile |
Definition at line 167 of file aiori-HDF5.c.
Referenced by HDF5_Open(), HDF5_Xfer(), and SetupDataSet().
|
static |
Definition at line 162 of file aiori-HDF5.c.
Referenced by HDF5_Close(), HDF5_Open(), and HDF5_Xfer().