-
Notifications
You must be signed in to change notification settings - Fork 181
DEVICE/API: Simplify createGpuXferReq to single-step API - WIP #894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
DEVICE/API: Simplify createGpuXferReq to single-step API - WIP #894
Conversation
|
👋 Hi michal-shalev! Thank you for contributing to ai-dynamo/nixl. Your PR reviewers will review your contribution then trigger the CI to test your changes. 🚀 |
Signed-off-by: Michal Shalev <[email protected]>
b0fe40c to
c3d2b1e
Compare
| nixl_status_t | ||
| createGpuXferReq(const nixlXferReqH &req_hndl, nixlGpuXferReqH &gpu_req_hndl) const; | ||
| createGpuXferReq(const nixl_xfer_dlist_t &local_descs, | ||
| const nixl_xfer_dlist_t &remote_descs, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's confusing to have local_descs and remote_descs with different lengths, which implies that the last len(remote_descs) - len(local_descs) remote descs are inline only.
Instead, I think we should enforce len(local_descs) == len(remote_descs) and introduce a third parameter- inline_descs which will describe remote memory that has no corresponding src buffer (and therefore can only be written into with inline data)
Signed-off-by: Michal Shalev <[email protected]>
THIS PR IS PENDING openucx/ucx#10945
What?
Replace two-step GPU transfer request creation with a single
createGpuXferReqAPI that takes descriptor lists directly and returns both transfer request and GPU request handles.Why?
Simplify the API by reducing GPU transfer request creation from two separate function calls to a single call.
How?
Updated
createGpuXferReqto substitute calls tocreateXferReq+createGpuXferReq. Removed the oldcreateGpuXferReqmethod and updated tests accordingly.