summaryrefslogtreecommitdiffstats
path: root/perform/pio_engine.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-07-15 15:21:05 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-07-15 15:21:05 (GMT)
commitc3b0c0f3c4ed622450862fdfd2ade5eb96d4ef1a (patch)
treea69f2b7a56c4009c3a5ed7e39e5269f03d6d63fa /perform/pio_engine.c
parent004988d1f1276e6fedabb37db290cff351508506 (diff)
downloadhdf5-c3b0c0f3c4ed622450862fdfd2ade5eb96d4ef1a.zip
hdf5-c3b0c0f3c4ed622450862fdfd2ade5eb96d4ef1a.tar.gz
hdf5-c3b0c0f3c4ed622450862fdfd2ade5eb96d4ef1a.tar.bz2
[svn-r5798] Purpose:
New feature. Description: Added MPI-posix VFL driver support. Platforms tested: FreeBSD 4.6 (sleipnir) w/parallel & IRIX64 6.5 (modi4) w/parallel
Diffstat (limited to 'perform/pio_engine.c')
-rw-r--r--perform/pio_engine.c23
1 files changed, 17 insertions, 6 deletions
diff --git a/perform/pio_engine.c b/perform/pio_engine.c
index 126d88a..60c4590 100644
--- a/perform/pio_engine.c
+++ b/perform/pio_engine.c
@@ -1518,12 +1518,23 @@ do_fopen(parameters *param, char *fname, file_descr *fd /*out*/, int flags)
GOTOERROR(FAIL);
}
- /* Set the file driver to the MPI-I/O driver */
- hrc = H5Pset_fapl_mpio(acc_tpl, pio_comm_g, h5_io_info_g);
- if (hrc < 0) {
- fprintf(stderr, "HDF5 Property List Set failed\n");
- GOTOERROR(FAIL);
- }
+ /* Use the appropriate VFL driver */
+ if(param->h5_use_mpi_posix) {
+ /* Set the file driver to the MPI-posix driver */
+ hrc = H5Pset_fapl_mpiposix(acc_tpl, pio_comm_g);
+ if (hrc < 0) {
+ fprintf(stderr, "HDF5 Property List Set failed\n");
+ GOTOERROR(FAIL);
+ }
+ } /* end if */
+ else {
+ /* Set the file driver to the MPI-I/O driver */
+ hrc = H5Pset_fapl_mpio(acc_tpl, pio_comm_g, h5_io_info_g);
+ if (hrc < 0) {
+ fprintf(stderr, "HDF5 Property List Set failed\n");
+ GOTOERROR(FAIL);
+ }
+ } /* end else */
/* Set the alignment of objects in HDF5 file */
hrc = H5Pset_alignment(acc_tpl, param->h5_thresh, param->h5_align);