This source file includes following definitions.
- MPI_T_pvar_read
1
2
3
4
5
6
7
8
9
10
11
12
13
14 #include "ompi/mpi/tool/mpit-internal.h"
15
16 #if OPAL_HAVE_WEAK_SYMBOLS && OMPI_PROFILING_DEFINES
17 #pragma weak MPI_T_pvar_read = PMPI_T_pvar_read
18 #endif
19
20 #if OMPI_PROFILING_DEFINES
21 #include "ompi/mpi/tool/profile/defines.h"
22 #endif
23
24
25 int MPI_T_pvar_read(MPI_T_pvar_session session, MPI_T_pvar_handle handle,
26 void* buf)
27 {
28 int ret;
29
30 if (!mpit_is_initialized ()) {
31 return MPI_T_ERR_NOT_INITIALIZED;
32 }
33
34 if (MPI_T_PVAR_ALL_HANDLES == handle || session != handle->session) {
35 return MPI_T_ERR_INVALID_HANDLE;
36 }
37
38 ompi_mpit_lock ();
39
40 ret = mca_base_pvar_handle_read_value (handle, buf);
41
42 ompi_mpit_unlock ();
43
44 return ompit_opal_to_mpit_error (ret);
45 }