ucx icon indicating copy to clipboard operation
ucx copied to clipboard

ucp_request_alloc is stubbed out; documentation incorrect

Open aedoq opened this issue 8 months ago • 1 comments

The implementation of ucp_request_alloc always returns NULL. If this is the intended behaviour, the function should probably be deprecated. Further, the documented return value cannot be correct, since it has the wrong type:

Returns     Error code as defined by ucs_status_t

This was previously discussed in #5991, where the conclusion was for the application to allocate memory (how we do it right now). It would be a QoL improvement to not have to differentiate between requests allocated by UCX and requests allocated by application code when freeing the memory.

aedoq avatar May 08 '25 11:05 aedoq

https://github.com/openucx/ucx/pull/10677

yosefe avatar May 11 '25 09:05 yosefe