summaryrefslogtreecommitdiffstats
path: root/hl/src
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2007-06-02 18:19:36 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2007-06-02 18:19:36 (GMT)
commit1280f90f8128a72f1b2cfe45d3a5a24334c222e0 (patch)
treea7969815417facfd248292e2830679fd4fbea9df /hl/src
parent2aa1084117a0040dbb6c54246837cd3133f51bdf (diff)
downloadhdf5-1280f90f8128a72f1b2cfe45d3a5a24334c222e0.zip
hdf5-1280f90f8128a72f1b2cfe45d3a5a24334c222e0.tar.gz
hdf5-1280f90f8128a72f1b2cfe45d3a5a24334c222e0.tar.bz2
[svn-r13829] Some systems (only SGI Altix ProPack 4 discovered so far) doesn't return correct
file size from MPI_File_get_size. Bypass this problem by replacing it with stat. Add an option --disable-mpi-size in configure to indicate this function doesn't work properly. Add a test in testpar/t_mpi.c, too. If it returns wrong file size, print out a warning. Tested on kagiso (parallel) because already tested the same change to v1.6 on several platforms (kagiso, cobalt, copper, and sol).
Diffstat (limited to 'hl/src')
-rw-r--r--hl/src/H5TB.c6
-rw-r--r--hl/src/Makefile.in1
2 files changed, 4 insertions, 3 deletions
diff --git a/hl/src/H5TB.c b/hl/src/H5TB.c
index 7e1de59..666c6f4 100644
--- a/hl/src/H5TB.c
+++ b/hl/src/H5TB.c
@@ -113,7 +113,7 @@ herr_t H5TBmake_table( const char *table_title,
}
/* Create a simple data space with unlimited size */
- if ( (sid = H5Screate_simple( 1, dims, maxdims )) < 0 )
+ if ( (sid = H5Screate_simple( 1, dims, maxdims )) < 0 )
return -1;
/* Modify dataset creation properties, i.e. enable chunking */
@@ -249,7 +249,6 @@ herr_t H5TBmake_table( const char *table_title,
if ( H5Tclose( mem_type_id ) < 0 )
return -1;
-
return 0;
/* error zone, gracefully close */
@@ -3281,7 +3280,8 @@ herr_t H5TBget_table_info ( hid_t loc_id,
if ( H5LTget_attribute(loc_id,dset_name,"NROWS",H5T_NATIVE_LLONG,n)<0)
return -1;
- *nrecords = *n;
+ /**nrecords = *n;*/
+ *nrecords = n[0];
}
else
{
diff --git a/hl/src/Makefile.in b/hl/src/Makefile.in
index 2c3e05e..670932f 100644
--- a/hl/src/Makefile.in
+++ b/hl/src/Makefile.in
@@ -180,6 +180,7 @@ MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
MPE = @MPE@
+MPI_GET_SIZE = @MPI_GET_SIZE@
OBJECT_NAMELEN_DEFAULT_F = @OBJECT_NAMELEN_DEFAULT_F@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@