@@ -62,6 +62,7 @@ static void ucp_rndv_complete_send(ucp_request_t *sreq, ucs_status_t status)
62
62
sreq , sreq -> send .rndv_req_id , worker );
63
63
}
64
64
65
+ ucp_send_request_update_data (sreq , "rndv_done" );
65
66
ucp_request_complete_send (sreq , status );
66
67
}
67
68
@@ -117,30 +118,13 @@ ucp_rndv_get_req_add_debug_entry(ucp_request_t *rndv_req,
117
118
entry -> send_req = NULL ;
118
119
}
119
120
120
- /* add debug entry for rndv send flow */
121
- static void
122
- ucp_rndv_send_add_debug_entry (ucp_request_t * req )
123
- {
124
- ucp_tag_rndv_debug_entry_t * entry ;
125
-
126
- entry = ucp_rndv_add_debug_entry_common (req );
127
- entry -> type = "rndv_send" ;
128
- entry -> rts_seq = 0 ;
129
- entry -> send_tag = req -> send .msg_proto .tag .tag ;
130
- entry -> recv_tag = 0 ;
131
- entry -> remote_address = 0 ;
132
- entry -> remote_reqptr = 0 ;
133
- entry -> rndv_get_req = NULL ;
134
- entry -> recv_req = NULL ;
135
- entry -> send_req = req ;
136
- }
137
-
138
121
/* to be used from debugger */
139
122
void ucp_rndv_print_debug_data (ucp_worker_h worker , const char * filename ,
140
123
ucp_tag_t send_tag )
141
124
{
142
125
ucp_tag_rndv_debug_entry_t * entry ;
143
126
size_t i , count ;
127
+ uint64_t ndata , udata ;
144
128
FILE * file ;
145
129
146
130
if (filename == NULL ) {
@@ -159,13 +143,18 @@ void ucp_rndv_print_debug_data(ucp_worker_h worker, const char *filename,
159
143
if ((send_tag != 0 ) && (send_tag != entry -> send_tag )) {
160
144
continue ;
161
145
}
146
+ memcpy (& udata , entry -> udata , sizeof (udata ));
147
+ memcpy (& ndata , entry -> ndata , sizeof (ndata ));
162
148
fprintf (file ,
163
- "%s id %lu rts_seq %lu stag 0x%lx rtag 0x%lx rva 0x%lx rmreq 0x%lx "
164
- "lva %p sz %zu greq %p rreq %p sreq %p\n" ,
165
- entry -> type , entry -> id , entry -> rts_seq , entry -> send_tag ,
166
- entry -> recv_tag , entry -> remote_address , entry -> remote_reqptr ,
167
- entry -> local_address , entry -> size , entry -> rndv_get_req ,
168
- entry -> recv_req , entry -> send_req );
149
+ "id %lu %s st '%s' rts_seq %lu pend %u stag 0x%lx rtag 0x%lx rva 0x%lx "
150
+ "rmreq %lu lva %p sz %zu rxsz %zu greq %p sreq %p rreq %p "
151
+ "udata 0x%" PRIx64 " ndata 0x%" PRIx64 "\n" ,
152
+ entry -> id , entry -> type , entry -> status , entry -> rts_seq ,
153
+ entry -> pending_count , entry -> send_tag , entry -> recv_tag ,
154
+ entry -> remote_address , entry -> remote_reqptr ,
155
+ entry -> local_address , entry -> size , entry -> recvd_size ,
156
+ entry -> rndv_get_req , entry -> send_req , entry -> recv_req ,
157
+ udata , ndata );
169
158
}
170
159
171
160
if (filename != NULL ) {
@@ -378,11 +367,6 @@ ucs_status_t ucp_tag_send_start_rndv(ucp_request_t *sreq)
378
367
379
368
sreq -> flags |= UCP_REQUEST_FLAG_SEND_RNDV ;
380
369
381
- sreq -> send .rndv_req_id = worker -> rndv_req_id ++ ;
382
- if (ucs_unlikely (worker -> tm .rndv_debug .queue_length > 0 )) {
383
- ucp_rndv_send_add_debug_entry (sreq );
384
- }
385
-
386
370
status = ucp_ep_resolve_dest_ep_ptr (ep , sreq -> send .lane );
387
371
if (status != UCS_OK ) {
388
372
return status ;
0 commit comments