Skip to content

Conversation

michal-shalev
Copy link
Contributor

@michal-shalev michal-shalev commented Oct 8, 2025

What?

Following #10928
Update UCT and UCP device API documentation to specify that send operations return UCS_INPROGRESS when successfully posted and UCS_OK when successfully completed.

Why?

Following #10928 the device send functions return UCS_INPROGRESS after posting operations (for gda_rc, not_cuda_ipc), but the documentation only stated generic "Error code as defined by ucs_status_t" without clarifying the expected return values or that completion checking is required.

How?

Added explicit UCS_INPROGRESS and UCS_OK documentation to all device send functions (put_single, atomic_add, put_multi, put_multi_partial) at both UCT and UCP layers.

iyastreb
iyastreb previously approved these changes Oct 8, 2025
Copy link
Contributor

@Artemy-Mellanox Artemy-Mellanox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIR we told that UCS_INPROGRESS should be returned only on UCT layer. Is it useful to return UCS_INPROGRESS to UCP API user?

@michal-shalev
Copy link
Contributor Author

@Artemy-Mellanox currently UCP returns UCS_INPROGRESS as well

tvegas1
tvegas1 previously approved these changes Oct 8, 2025
@Artemy-Mellanox
Copy link
Contributor

@Artemy-Mellanox currently UCP returns UCS_INPROGRESS as well
maybe we should fix it to return UCS_OK?

@michal-shalev
Copy link
Contributor Author

@Artemy-Mellanox currently UCP returns UCS_INPROGRESS as well
maybe we should fix it to return UCS_OK?

It would require testing and updating the tests, let's discuss tomorrow and for now update documentation according to the current implementation.

@michal-shalev michal-shalev enabled auto-merge (squash) October 8, 2025 19:25
@michal-shalev michal-shalev disabled auto-merge October 9, 2025 13:03
@michal-shalev michal-shalev dismissed stale reviews from tvegas1 and iyastreb via 554304f October 13, 2025 07:13
@michal-shalev michal-shalev changed the title DEVICE: Document UCS_INPROGRESS return status for device APIs DEVICE: Document return status for device APIs Oct 13, 2025
@michal-shalev michal-shalev enabled auto-merge (squash) October 13, 2025 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants