Skip to content

Commit

Permalink
ucx: fix latency test
Browse files Browse the repository at this point in the history
  • Loading branch information
artpol84 committed Jun 29, 2017
1 parent 4f42685 commit 51e4bff
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ucx/latency/ucp_latency.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ int recv_msg(ucp_worker_h ucp_worker, ucp_ep_h server_ep)
/* Following blocked methods used to polling internal file descriptor
* to make CPU idle and don't spin loop
*/
/* Progressing before probe to update the state */
ucp_worker_progress(ucp_worker);

/* Probing incoming events in non-block mode */
msg_tag = ucp_tag_probe_nb(ucp_worker, tag, tag_mask, 1, &info_tag);

if (ucp_test_mode == TEST_MODE_WAIT) {
/* Polling incoming events*/
status = ucp_worker_wait(ucp_worker);
Expand All @@ -196,11 +202,6 @@ int recv_msg(ucp_worker_h ucp_worker, ucp_ep_h server_ep)
}
}

/* Progressing before probe to update the state */
ucp_worker_progress(ucp_worker);

/* Probing incoming events in non-block mode */
msg_tag = ucp_tag_probe_nb(ucp_worker, tag, tag_mask, 1, &info_tag);
} while (msg_tag == NULL);

if( same_buf ) {
Expand Down

0 comments on commit 51e4bff

Please sign in to comment.