diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-06-19 20:20:11 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-06-19 20:20:11 (GMT) |
commit | 8f803c26fd7f2b7edb1112a3e780eb5905ba0053 (patch) | |
tree | 3bbba4302256052ccaecec56a0a8d3901c163753 /src/H5D.c | |
parent | 5d21740186aa1dbc65ff9c1343bf4f19233c3ca3 (diff) | |
download | hdf5-8f803c26fd7f2b7edb1112a3e780eb5905ba0053.zip hdf5-8f803c26fd7f2b7edb1112a3e780eb5905ba0053.tar.gz hdf5-8f803c26fd7f2b7edb1112a3e780eb5905ba0053.tar.bz2 |
[svn-r5681] Purpose:
New feature.
Description:
There is some discussion among the SAF team as to whether it is better
to use MPI derived types for raw data transfers (thus needing a
MPI_File_set_view() call), or whether it is better to use a sequence of
low-level MPI types (i.e. MPI_BYTE) for the raw data transfer.
Solution:
Added an internal flag to determine whether derived types are preferred
(the default), or whether they should be avoided. An environment variable
("HDF5_MPI_PREFER_DERIVED_TYPES") can be set by users to control whether MPI
types should be used or not. Set the environment variable to "0" (i.e.:
'setenv HDF5_MPI_PREFER_DERIVED_TYPES 0') to avoid using MPI derived types.
Platforms tested:
IRIX64 6.5 (modi4) w/parallel
Diffstat (limited to 'src/H5D.c')
-rw-r--r-- | src/H5D.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1703,7 +1703,7 @@ printf("%s: check 1.0, nelmts=%d\n",FUNC,(int)nelmts); * mem-and-file-dataspace-xfer functions * (the latter in case the arguments to sconv_funcs * turn out to be inappropriate for MPI-IO). */ - if (H5_mpi_opt_types_g && + if (H5S_mpi_opt_types_g && IS_H5FD_MPIO(dataset->ent.file)) { /* Only collective write should call this since it eventually * calls MPI_File_set_view which is a collective call. @@ -2190,7 +2190,7 @@ H5D_write(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space, * mem-and-file-dataspace-xfer functions * (the latter in case the arguments to sconv_funcs * turn out to be inappropriate for MPI-IO). */ - if (H5_mpi_opt_types_g && + if (H5S_mpi_opt_types_g && IS_H5FD_MPIO(dataset->ent.file)) { /* Only collective write should call this since it eventually * calls MPI_File_set_view which is a collective call. |