Skip to content

blocking probe #6227

Answered by brminich
dimitrijejankov asked this question in Q&A
Jan 28, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi,
You can replace MPI_Mprobe by ucp_tag_probe_nb() with remove flag set to 1, i. e.
ucp_tag_probe_nb(worker, tag, tag_mask, 1, info);
This routine returns msg handle which can further be passed to ucp_tag_msg_recv_nb to receive the message.
Also to make it blocking you can use a loop, like it is done in OMPI here:
https://github.com/open-mpi/ompi/blob/master/ompi/mca/pml/ucx/pml_ucx.c#L1029

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dimitrijejankov
Comment options

Answer selected by brminich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants