File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 47
47
#include "ompi/mca/bml/base/base.h"
48
48
#include "opal/mca/pmix/pmix-internal.h"
49
49
#include "ompi/runtime/ompi_cr.h"
50
+ #include "ompi/runtime/ompi_spc.h"
50
51
51
52
#include "pml_ob1.h"
52
53
#include "pml_ob1_component.h"
@@ -708,6 +709,7 @@ int mca_pml_ob1_send_fin( ompi_proc_t* proc,
708
709
if ( OPAL_LIKELY ( 1 == rc ) ) {
709
710
MCA_PML_OB1_PROGRESS_PENDING (bml_btl );
710
711
}
712
+ SPC_RECORD (OMPI_SPC_BYTES_SENT_MPI , (ompi_spc_value_t )sizeof (mca_pml_ob1_fin_hdr_t ));
711
713
return OMPI_SUCCESS ;
712
714
}
713
715
mca_bml_base_free (bml_btl , fin );
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ int mca_pml_ob1_recv_request_ack_send_btl(
252
252
des -> des_cbfunc = mca_pml_ob1_recv_ctl_completion ;
253
253
254
254
rc = mca_bml_base_send (bml_btl , des , MCA_PML_OB1_HDR_TYPE_ACK );
255
- SPC_RECORD (OMPI_SPC_BYTES_RECEIVED_MPI , (ompi_spc_value_t )size );
255
+ SPC_RECORD (OMPI_SPC_BYTES_SENT_MPI , (ompi_spc_value_t )sizeof ( mca_pml_ob1_ack_hdr_t ) );
256
256
if ( OPAL_LIKELY ( rc >= 0 ) ) {
257
257
return OMPI_SUCCESS ;
258
258
}
@@ -456,8 +456,8 @@ static int mca_pml_ob1_recv_request_put_frag (mca_pml_ob1_rdma_frag_t *frag)
456
456
457
457
/* send rdma request to peer */
458
458
rc = mca_bml_base_send (bml_btl , ctl , MCA_PML_OB1_HDR_TYPE_PUT );
459
- /* Increment counter for bytes_put even though they probably haven't all been received yet */
460
- SPC_RECORD (OMPI_SPC_BYTES_PUT , (ompi_spc_value_t )frag -> rdma_length );
459
+ /* Increment counter for bytes sent by MPI */
460
+ SPC_RECORD (OMPI_SPC_BYTES_SENT_MPI , (ompi_spc_value_t )( sizeof ( mca_pml_ob1_rdma_hdr_t ) + reg_size ) );
461
461
if (OPAL_UNLIKELY (rc < 0 )) {
462
462
mca_bml_base_free (bml_btl , ctl );
463
463
return rc ;
You can’t perform that action at this time.
0 commit comments