summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools.h
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-10-19 17:07:26 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-10-19 17:07:26 (GMT)
commita1edc7069162a619957c7407d04b91e081044219 (patch)
treeca5e64791fcad2730a6ae92d7ba667bf9306cc41 /tools/lib/h5tools.h
parent78a3d673e6cb491d8087b74d0e2cbdd8ca89bb47 (diff)
downloadhdf5-a1edc7069162a619957c7407d04b91e081044219.zip
hdf5-a1edc7069162a619957c7407d04b91e081044219.tar.gz
hdf5-a1edc7069162a619957c7407d04b91e081044219.tar.bz2
[svn-r12784]
Fixes for bugs 676, 228 676: both h5repack and h5diff use H5Dread. In the case of a "big" dataset, use read/write by hyperslabs the same way h5dump uses. An arbitrary value of 1GB was defined for "big", i.e, if the dataset is greater than 1GB, then read/write by hyperslabs 228: use the file type in read/write by default. A new switch -n was introduced if the user wants to use a native type, which was the previous use by default. Added a new test for h5repack that repacks a 1GB dataset Tested: heping (serial, parallel), sol, copper
Diffstat (limited to 'tools/lib/h5tools.h')
-rw-r--r--tools/lib/h5tools.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/lib/h5tools.h b/tools/lib/h5tools.h
index 357154b..70d8734 100644
--- a/tools/lib/h5tools.h
+++ b/tools/lib/h5tools.h
@@ -30,6 +30,23 @@
#define END_OF_DATA 0x0002
/*
+ * The output functions need a temporary buffer to hold a piece of the
+ * dataset while it's being printed. This constant sets the limit on the
+ * size of that temporary buffer in bytes. For efficiency's sake, choose the
+ * largest value suitable for your machine (for testing use a small value).
+ */
+#if 1
+#define H5TOOLS_BUFSIZE (1024 * 1024)
+#else
+#define H5TOOLS_BUFSIZE (1024)
+#endif
+
+/*
+ * Maximum size used in a call to malloc
+ */
+#define H5TOOLS_MALLOCSIZE ((size_t)1024 * 1024 * 1024)
+
+/*
* Information about how to format output.
*/
typedef struct h5tool_format_t {