ucx icon indicating copy to clipboard operation
ucx copied to clipboard

How to use ucp_put_nb?

Open haipeng31 opened this issue 1 year ago • 1 comments

In the client side, I invoke the following function:

  1. ucp_put_nb to rdma_write remote addr
  2. ucp_tag_send_nb to notify remote the previous rdma_write succeed

In the server side, I invoke the following funciton:

  1. ucp_tag_recv_nb

My question is if In the server side, recv_nb's cb is called, can't I make sure that the ucp_put_nb is finished or in other words The server side can read the data wrote by the client side throught ucp_put_nb?

One more question is whether ucx support rdma_write_with_imme?

waiting for your reponses, tks

haipeng31 avatar Mar 28 '24 05:03 haipeng31

Would it not make more sense to use ucp_tag_recv_nb and ucp_tag_send_nb for the message directly? You can use ucp_worker_flush_nbx to make sure the put has finished.

thomas3494 avatar Jun 06 '25 15:06 thomas3494