mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
[svn-r25922] mpi version check for new mpi 3 features should be >= 3 rather than == 3.
This commit is contained in:
parent
cbd0460b1b
commit
d4e70e8cae
@ -1454,7 +1454,7 @@ H5FD_mpio_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t dxpl_id, haddr_t add
|
||||
int mpi_code; /* mpi return code */
|
||||
MPI_Datatype buf_type = MPI_BYTE; /* MPI description of the selection in memory */
|
||||
int size_i; /* Integer copy of 'size' to read */
|
||||
#if MPI_VERSION == 3
|
||||
#if MPI_VERSION >= 3
|
||||
MPI_Count bytes_read; /* Number of bytes read in */
|
||||
MPI_Count type_size; /* MPI datatype used for I/O's size */
|
||||
MPI_Count io_size; /* Actual number of bytes requested */
|
||||
@ -1580,7 +1580,7 @@ H5FD_mpio_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t dxpl_id, haddr_t add
|
||||
}
|
||||
|
||||
/* How many bytes were actually read? */
|
||||
#if MPI_VERSION == 3
|
||||
#if MPI_VERSION >= 3
|
||||
if (MPI_SUCCESS != (mpi_code = MPI_Get_elements_x(&mpi_stat, buf_type, &bytes_read)))
|
||||
#else
|
||||
if (MPI_SUCCESS != (mpi_code = MPI_Get_elements(&mpi_stat, MPI_BYTE, &bytes_read)))
|
||||
@ -1588,7 +1588,7 @@ H5FD_mpio_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t dxpl_id, haddr_t add
|
||||
HMPI_GOTO_ERROR(FAIL, "MPI_Get_elements failed", mpi_code)
|
||||
|
||||
/* Get the type's size */
|
||||
#if MPI_VERSION == 3
|
||||
#if MPI_VERSION >= 3
|
||||
if (MPI_SUCCESS != (mpi_code = MPI_Type_size_x(buf_type, &type_size)))
|
||||
#else
|
||||
if (MPI_SUCCESS != (mpi_code = MPI_Type_size(buf_type, &type_size)))
|
||||
@ -1748,7 +1748,7 @@ H5FD_mpio_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr,
|
||||
MPI_Status mpi_stat; /* Status from I/O operation */
|
||||
MPI_Datatype buf_type = MPI_BYTE; /* MPI description of the selection in memory */
|
||||
int mpi_code; /* MPI return code */
|
||||
#if MPI_VERSION == 3
|
||||
#if MPI_VERSION >= 3
|
||||
MPI_Count bytes_written;
|
||||
MPI_Count type_size; /* MPI datatype used for I/O's size */
|
||||
MPI_Count io_size; /* Actual number of bytes requested */
|
||||
@ -1884,7 +1884,7 @@ H5FD_mpio_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr,
|
||||
}
|
||||
|
||||
/* How many bytes were actually written? */
|
||||
#if MPI_VERSION == 3
|
||||
#if MPI_VERSION >= 3
|
||||
if(MPI_SUCCESS != (mpi_code = MPI_Get_elements_x(&mpi_stat, buf_type, &bytes_written)))
|
||||
#else
|
||||
if(MPI_SUCCESS != (mpi_code = MPI_Get_elements(&mpi_stat, MPI_BYTE, &bytes_written)))
|
||||
@ -1892,7 +1892,7 @@ H5FD_mpio_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr,
|
||||
HMPI_GOTO_ERROR(FAIL, "MPI_Get_elements failed", mpi_code)
|
||||
|
||||
/* Get the type's size */
|
||||
#if MPI_VERSION == 3
|
||||
#if MPI_VERSION >= 3
|
||||
if(MPI_SUCCESS != (mpi_code = MPI_Type_size_x(buf_type, &type_size)))
|
||||
#else
|
||||
if(MPI_SUCCESS != (mpi_code = MPI_Type_size(buf_type, &type_size)))
|
||||
|
@ -169,7 +169,7 @@ H5S_mpio_create_point_datatype (size_t elmt_size, hsize_t num_points,
|
||||
HMPI_GOTO_ERROR(FAIL, "MPI_Type_contiguous failed", mpi_code)
|
||||
elmt_type_created = TRUE;
|
||||
|
||||
#if MPI_VERSION == 3
|
||||
#if MPI_VERSION >= 3
|
||||
/* Create an MPI datatype for the whole point selection */
|
||||
if(MPI_SUCCESS != (mpi_code = MPI_Type_create_hindexed_block((int)num_points, 1, disp, elmt_type, new_type)))
|
||||
HMPI_GOTO_ERROR(FAIL, "MPI_Type_create_indexed_block failed", mpi_code)
|
||||
|
Loading…
x
Reference in New Issue
Block a user