[svn-r12750] Purpose:

Bug Fix (Bug 544)

Description:
SGI Altix's MPI_File_get_size overflowed at 2GB and more.
Replaced h5_mpi_get_file_size calls by h5_get_file_size.

Tested:
Cobalt.
This commit is contained in:
Albert Cheng 2006-10-11 21:12:24 -05:00
parent 3cb353e883
commit 9b24333b19

View File

@ -457,7 +457,7 @@ void big_dataset(void)
VRFY((ret >= 0), "H5Fclose succeeded");
/* Check that file of the correct size was created */
file_size=h5_mpi_get_file_size(filename, MPI_COMM_WORLD, MPI_INFO_NULL);
file_size=h5_get_file_size(filename);
#ifndef WIN32
VRFY((file_size == 2147485696ULL), "File is correct size (~2GB)");
#endif
@ -488,7 +488,7 @@ void big_dataset(void)
VRFY((ret >= 0), "H5Fclose succeeded");
/* Check that file of the correct size was created */
file_size=h5_mpi_get_file_size(filename, MPI_COMM_WORLD, MPI_INFO_NULL);
file_size=h5_get_file_size(filename);
#ifndef WIN32
VRFY((file_size == 4294969344ULL), "File is correct size (~4GB)");
#endif
@ -519,7 +519,7 @@ void big_dataset(void)
VRFY((ret >= 0), "H5Fclose succeeded");
/* Check that file of the correct size was created */
file_size=h5_mpi_get_file_size(filename, MPI_COMM_WORLD, MPI_INFO_NULL);
file_size=h5_get_file_size(filename);
#ifndef WIN32
VRFY((file_size == 8589936640ULL), "File is correct size (~8GB)");
#endif