Or Gerlitz wrote: > Greenwood, Steve wrote: > >> I have a thread that uses ibv_get_cq_event to handling completing RDMA >> requests. This call seems to have roughly the same capabilities as the >> Mellanox vapi call EVAPI_poll_cq_block with one important exception. >> The open-fabrics routine does not have a timeout argument. >> > > >> Beyond restructuring my application, is there a simple way to make get >> ibv_get_cq_event return without a message arriving? >> > > sure, yes, for both questions: the actual object to deliver cq event is > struct ibv_comp_channel whose only field is a file descriptor with which > you can implement the requirements, use poll/select to set a timeout, or > make it non blocking such that you can > This is true (and i guess that it will work), but if in the future the implementation of the ibv_comp_channel will be changed, this code will not work ....
Dotan _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
