diff options
author | Jonathan Kim <jkm@hdfgroup.org> | 2011-10-14 22:44:11 (GMT) |
---|---|---|
committer | Jonathan Kim <jkm@hdfgroup.org> | 2011-10-14 22:44:11 (GMT) |
commit | 664c013fc76b9a440944db320e9025b4a9a62beb (patch) | |
tree | 05a4e30ae59d69fab0fd45630e71dc59b9bee2cf /tools/lib/h5tools_utils.h | |
parent | 3be11d46c5803fe65c05cd5c859989406ce25667 (diff) | |
download | hdf5-664c013fc76b9a440944db320e9025b4a9a62beb.zip hdf5-664c013fc76b9a440944db320e9025b4a9a62beb.tar.gz hdf5-664c013fc76b9a440944db320e9025b4a9a62beb.tar.bz2 |
[svn-r21586] Description:
Added a funtion to reset dataset & hyperslab buffer size for h5repack from an
environment variable.
This is performance debugging purpose for now.
Tested:
jam (linux32-LE), koala (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), Windows (32-LE), cmake
Diffstat (limited to 'tools/lib/h5tools_utils.h')
-rw-r--r-- | tools/lib/h5tools_utils.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/lib/h5tools_utils.h b/tools/lib/h5tools_utils.h index be32d07..0f3acd1 100644 --- a/tools/lib/h5tools_utils.h +++ b/tools/lib/h5tools_utils.h @@ -32,6 +32,10 @@ extern "C" { #define PRINT_DATA_MAX_SIZE 512 #define OUTBUFF_SIZE (PRINT_DATA_MAX_SIZE*4) +/* Maximum size used in a call to malloc for a dataset */ +H5TOOLS_DLLVAR hsize_t H5TOOLS_MALLOCSIZE; +/* size of hyperslab buffer when a dataset is bigger than H5TOOLS_MALLOCSIZE */ +H5TOOLS_DLLVAR hsize_t H5TOOLS_BUFSIZE; H5TOOLS_DLLVAR int g_nTasks; H5TOOLS_DLLVAR unsigned char g_Parallel; H5TOOLS_DLLVAR char outBuff[]; @@ -169,7 +173,7 @@ H5TOOLS_DLL const char *h5tools_getprogname(void); H5TOOLS_DLL void h5tools_setprogname(const char*progname); H5TOOLS_DLL int h5tools_getstatus(void); H5TOOLS_DLL void h5tools_setstatus(int d_status); - +H5TOOLS_DLL int h5tools_getenv_update_hyperslab_bufsize(void); #ifdef __cplusplus } #endif |