File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 30
30
#include "pml_ob1_recvfrag.h"
31
31
#include "ompi/peruse/peruse-internal.h"
32
32
#include "ompi/message/message.h"
33
+ #include "ompi/memchecker.h"
33
34
34
35
/**
35
36
* Single usage request. As we allow recursive calls to recv
@@ -133,6 +134,17 @@ int mca_pml_ob1_recv(void *addr,
133
134
134
135
rc = recvreq -> req_recv .req_base .req_ompi .req_status .MPI_ERROR ;
135
136
137
+ if (recvreq -> req_recv .req_base .req_pml_complete ) {
138
+ /* make buffer defined when the request is compeleted,
139
+ and before releasing the objects. */
140
+ MEMCHECKER (
141
+ memchecker_call (& opal_memchecker_base_mem_defined ,
142
+ recvreq -> req_recv .req_base .req_addr ,
143
+ recvreq -> req_recv .req_base .req_count ,
144
+ recvreq -> req_recv .req_base .req_datatype );
145
+ );
146
+ }
147
+
136
148
#if OMPI_ENABLE_THREAD_MULTIPLE
137
149
MCA_PML_OB1_RECV_REQUEST_RETURN (recvreq );
138
150
#else
You can’t perform that action at this time.
0 commit comments