This source file includes following definitions.
- MPIR_Status_set_bytes
- MPIR_Status_set_bytes
1
2
3
4
5
6
7
8 #include "adio.h"
9 #include "mpi.h"
10
11 #if defined(MPICH2) || (defined(MPICH) && (MPICH_NAME >= 3))
12
13
14
15
16 int MPIR_Status_set_bytes(MPI_Status *status, MPI_Datatype datatype,
17 MPI_Count nbytes)
18 {
19 ADIOI_UNREFERENCED_ARG(datatype);
20
21
22 if (status != MPI_STATUS_IGNORE)
23 MPI_Status_set_elements_x(status, MPI_BYTE, nbytes);
24 return MPI_SUCCESS;
25 }
26 #elif defined(MPILAM) || defined(MPISGI)
27 int MPIR_Status_set_bytes(MPI_Status *status, MPI_Datatype datatype,
28 MPI_Count nbytes)
29 {
30
31 if (datatype == MPI_DATATYPE_NULL);
32
33 if (status != MPI_STATUS_IGNORE)
34 status->st_length = nbytes;
35 return MPI_SUCCESS;
36 }
37 #endif