33
33
* because ROMIO just expects these functions to exist.
34
34
*/
35
35
int MPIR_Status_set_bytes (ompi_status_public_t * status ,
36
- struct ompi_datatype_t * datatype , int size );
36
+ struct ompi_datatype_t * datatype , MPI_Count size );
37
37
void ADIOI_Datatype_iscontig (MPI_Datatype datatype , int * flag );
38
38
39
39
@@ -117,7 +117,7 @@ mca_io_base_module_2_0_0_t mca_io_romio321_module = {
117
117
* MPI_Status_set_elements (almost like they planned that... hmmm...).
118
118
*/
119
119
int MPIR_Status_set_bytes (ompi_status_public_t * status ,
120
- struct ompi_datatype_t * datatype , int nbytes )
120
+ struct ompi_datatype_t * datatype , MPI_Count nbytes )
121
121
{
122
122
/* Note that ROMIO is going to give a number of *bytes* here, but
123
123
MPI_STATUS_SET_ELEMENTS requires a number of *elements*. So
@@ -127,7 +127,7 @@ int MPIR_Status_set_bytes(ompi_status_public_t *status,
127
127
we do the right calculations there. This prevents roundoff
128
128
errors here, potentially "losing" bytes in the process. */
129
129
130
- MPI_Status_set_elements (status , MPI_CHAR , nbytes );
130
+ MPI_Status_set_elements_x (status , MPI_CHAR , nbytes );
131
131
return MPI_SUCCESS ;
132
132
}
133
133
0 commit comments