diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-27 21:38:38 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-27 21:38:38 (GMT) |
commit | 7840775796c64907a56d63f2c5a23bddcb47550e (patch) | |
tree | 11ca8f1a8dc402351e3405d60f66871535b58a22 /src/H5S.c | |
parent | 6859fd9ef2cedebd2bc186e49664f4b121aaa594 (diff) | |
download | hdf5-7840775796c64907a56d63f2c5a23bddcb47550e.zip hdf5-7840775796c64907a56d63f2c5a23bddcb47550e.tar.gz hdf5-7840775796c64907a56d63f2c5a23bddcb47550e.tar.bz2 |
[svn-r7755] Purpose:
Code cleanup
Description:
Straighten out more goofiness in the MPI code dealing with collective I/O
transfers - mostly make certain that a view is set if-and-only-if collective
I/O is occurring on raw data (and vice versa for views and independent I/O)
Platforms tested:
FreeBSD 4.9 (sleipnir) w/parallel
too minor to repquire h5committest
Diffstat (limited to 'src/H5S.c')
-rw-r--r-- | src/H5S.c | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -1478,7 +1478,11 @@ H5S_find (const H5S_t *mem_space, const H5S_t *file_space, unsigned #ifndef H5_HAVE_PARALLEL UNUSED #endif /* H5_HAVE_PARALLEL */ -flags) +flags, hbool_t +#ifndef H5_HAVE_PARALLEL +UNUSED +#endif /* H5_HAVE_PARALLEL */ +*use_par_opt_io) { H5S_conv_t *path=NULL; /* Space conversion path */ #ifdef H5_HAVE_PARALLEL @@ -1521,10 +1525,17 @@ flags) /* Check if we can use the optimized parallel I/O routines */ if(opt==TRUE) { + /* Set the pointers to the MPI-specific routines */ H5S_conv_g[i]->read = H5S_mpio_spaces_read; H5S_conv_g[i]->write = H5S_mpio_spaces_write; + + /* Indicate that the I/O will be parallel */ + *use_par_opt_io=TRUE; } /* end if */ else { + /* Indicate that the I/O will _NOT_ be parallel */ + *use_par_opt_io=FALSE; + #endif /* H5_HAVE_PARALLEL */ H5S_conv_g[i]->read = H5S_select_read; H5S_conv_g[i]->write = H5S_select_write; @@ -1556,10 +1567,17 @@ flags) /* Check if we can use the optimized parallel I/O routines */ if(opt==TRUE) { + /* Set the pointers to the MPI-specific routines */ path->read = H5S_mpio_spaces_read; path->write = H5S_mpio_spaces_write; + + /* Indicate that the I/O will be parallel */ + *use_par_opt_io=TRUE; } /* end if */ else { + /* Indicate that the I/O will _NOT_ be parallel */ + *use_par_opt_io=FALSE; + #endif /* H5_HAVE_PARALLEL */ path->read = H5S_select_read; path->write = H5S_select_write; |