summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack_main.c
diff options
context:
space:
mode:
authorJonathan Kim <jkm@hdfgroup.org>2011-10-14 22:44:11 (GMT)
committerJonathan Kim <jkm@hdfgroup.org>2011-10-14 22:44:11 (GMT)
commit664c013fc76b9a440944db320e9025b4a9a62beb (patch)
tree05a4e30ae59d69fab0fd45630e71dc59b9bee2cf /tools/h5repack/h5repack_main.c
parent3be11d46c5803fe65c05cd5c859989406ce25667 (diff)
downloadhdf5-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/h5repack/h5repack_main.c')
-rw-r--r--tools/h5repack/h5repack_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/h5repack/h5repack_main.c b/tools/h5repack/h5repack_main.c
index 99d700d..010d9f2 100644
--- a/tools/h5repack/h5repack_main.c
+++ b/tools/h5repack/h5repack_main.c
@@ -106,6 +106,10 @@ int main(int argc, const char **argv)
h5tools_setprogname(PROGRAMNAME);
h5tools_setstatus(EXIT_SUCCESS);
+ /* update hyperslab buffer size from H5TOOLS_BUFSIZE env if exist */
+ if ( h5tools_getenv_update_hyperslab_bufsize() < 0)
+ exit(EXIT_FAILURE);
+
/* initialize options */
h5repack_init(&options, 0, 0, (hsize_t)0);