summaryrefslogtreecommitdiffstats
path: root/testpar/t_ph5basic.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-05-05 20:48:33 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-05-05 20:48:33 (GMT)
commitc12f91908be82a3864fbbe23ff48a8a8abe629d4 (patch)
treeba68b0c811b473b1ed9543ee947d9da0f5c12e7e /testpar/t_ph5basic.c
parentf69ae67faa5fd78196f5afd417090c7440781687 (diff)
downloadhdf5-c12f91908be82a3864fbbe23ff48a8a8abe629d4.zip
hdf5-c12f91908be82a3864fbbe23ff48a8a8abe629d4.tar.gz
hdf5-c12f91908be82a3864fbbe23ff48a8a8abe629d4.tar.bz2
[svn-r6795] Purpose:
Feature Add Description: Added knob so that the programmer can enable or disable GPFS hints during runtime instead of having it only enabled at configure/compile time. Some of the public APIs were changed to add an extra parameter for this option... Platforms tested: Blue (LLNL). It only affects the MPI/POSIX driver, so no need to test it on non-GPFS platforms. Misc. update:
Diffstat (limited to 'testpar/t_ph5basic.c')
-rw-r--r--testpar/t_ph5basic.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/testpar/t_ph5basic.c b/testpar/t_ph5basic.c
index 762396c..206ac0b 100644
--- a/testpar/t_ph5basic.c
+++ b/testpar/t_ph5basic.c
@@ -219,6 +219,7 @@ test_fapl_mpiposix_dup(void)
int mpi_size_tmp, mpi_rank_tmp;
int mrc; /* MPI return value */
hid_t acc_pl; /* File access properties */
+ hbool_t use_gpfs = FALSE;
herr_t ret; /* hdf5 return value */
int nkeys, nkeys_tmp;
@@ -244,7 +245,7 @@ test_fapl_mpiposix_dup(void)
acc_pl = H5Pcreate (H5P_FILE_ACCESS);
VRFY((acc_pl >= 0), "H5P_FILE_ACCESS");
- ret = H5Pset_fapl_mpiposix(acc_pl, comm);
+ ret = H5Pset_fapl_mpiposix(acc_pl, comm, use_gpfs);
VRFY((ret >= 0), "");
/* Case 1:
@@ -255,7 +256,7 @@ test_fapl_mpiposix_dup(void)
mrc = MPI_Comm_free(&comm);
VRFY((mrc==MPI_SUCCESS), "MPI_Comm_free");
- ret = H5Pget_fapl_mpiposix(acc_pl, &comm_tmp);
+ ret = H5Pget_fapl_mpiposix(acc_pl, &comm_tmp, &use_gpfs);
VRFY((ret >= 0), "H5Pget_fapl_mpiposix");
MPI_Comm_size(comm_tmp,&mpi_size_tmp);
MPI_Comm_rank(comm_tmp,&mpi_rank_tmp);
@@ -275,12 +276,12 @@ test_fapl_mpiposix_dup(void)
VRFY((mrc==MPI_SUCCESS), "MPI_Comm_free");
/* check NULL argument options. */
- ret = H5Pget_fapl_mpiposix(acc_pl, NULL);
+ ret = H5Pget_fapl_mpiposix(acc_pl, NULL, NULL);
VRFY((ret >= 0), "H5Pget_fapl_mpiposix neither");
/* now get it again and check validity too. */
- /* Donot free the returned object which are used in the next case. */
- ret = H5Pget_fapl_mpiposix(acc_pl, &comm_tmp);
+ /* Don't free the returned object which is used in the next case. */
+ ret = H5Pget_fapl_mpiposix(acc_pl, &comm_tmp, &use_gpfs);
VRFY((ret >= 0), "H5Pget_fapl_mpiposix");
MPI_Comm_size(comm_tmp,&mpi_size_tmp);
MPI_Comm_rank(comm_tmp,&mpi_rank_tmp);