|
20 | 20 | #include "opal/mca/pmix/pmix-internal.h"
|
21 | 21 | #include "ompi/attribute/attribute.h"
|
22 | 22 | #include "ompi/message/message.h"
|
| 23 | +#include "ompi/runtime/ompi_spc.h" |
23 | 24 | #include "ompi/mca/pml/base/pml_base_bsend.h"
|
24 | 25 | #include "opal/mca/common/ucx/common_ucx.h"
|
25 | 26 | #if OPAL_CUDA_SUPPORT
|
@@ -627,6 +628,13 @@ int mca_pml_ucx_recv(void *buf, size_t count, ompi_datatype_t *datatype, int src
|
627 | 628 | status = ucp_request_test(req, &info);
|
628 | 629 | if (status != UCS_INPROGRESS) {
|
629 | 630 | mca_pml_ucx_set_recv_status_safe(mpi_status, status, &info);
|
| 631 | + |
| 632 | +#if SPC_ENABLE == 1 |
| 633 | + size_t dt_size; |
| 634 | + ompi_datatype_type_size(datatype, &dt_size); |
| 635 | + SPC_USER_OR_MPI(tag, dt_size*count, |
| 636 | + OMPI_SPC_BYTES_RECEIVED_USER, OMPI_SPC_BYTES_RECEIVED_MPI); |
| 637 | +#endif |
630 | 638 | return OMPI_SUCCESS;
|
631 | 639 | }
|
632 | 640 | }
|
@@ -827,6 +835,13 @@ int mca_pml_ucx_isend(const void *buf, size_t count, ompi_datatype_t *datatype,
|
827 | 835 | mca_pml_ucx_send_completion);
|
828 | 836 | #endif
|
829 | 837 |
|
| 838 | +#if SPC_ENABLE == 1 |
| 839 | + size_t dt_size; |
| 840 | + ompi_datatype_type_size(datatype, &dt_size); |
| 841 | + SPC_USER_OR_MPI(tag, dt_size*count, |
| 842 | + OMPI_SPC_BYTES_SENT_USER, OMPI_SPC_BYTES_SENT_MPI); |
| 843 | +#endif |
| 844 | + |
830 | 845 | if (req == NULL) {
|
831 | 846 | PML_UCX_VERBOSE(8, "returning completed request");
|
832 | 847 | *request = &ompi_pml_ucx.completed_send_req;
|
@@ -918,6 +933,13 @@ int mca_pml_ucx_send(const void *buf, size_t count, ompi_datatype_t *datatype, i
|
918 | 933 | return OMPI_ERROR;
|
919 | 934 | }
|
920 | 935 |
|
| 936 | +#if SPC_ENABLE == 1 |
| 937 | + size_t dt_size; |
| 938 | + ompi_datatype_type_size(datatype, &dt_size); |
| 939 | + SPC_USER_OR_MPI(tag, dt_size*count, |
| 940 | + OMPI_SPC_BYTES_SENT_USER, OMPI_SPC_BYTES_SENT_MPI); |
| 941 | +#endif |
| 942 | + |
921 | 943 | #if HAVE_DECL_UCP_TAG_SEND_NBR
|
922 | 944 | if (OPAL_LIKELY((MCA_PML_BASE_SEND_BUFFERED != mode) &&
|
923 | 945 | (MCA_PML_BASE_SEND_SYNCHRONOUS != mode))) {
|
|
0 commit comments