Repository navigation
Conversation
yosefe
reviewed
Dec 14, 2025
| UCS_F_DEVICE void ucx_perf_cuda_wait_sn(const uint64_t *sn, uint64_t value) | ||
| { | ||
| if (threadIdx.x == 0) { | ||
| //TODO - Support host memory |
Member
There was a problem hiding this comment.
pls remove or change to /* TODO support host memory */
Comment on lines
-268
to
-278
| if (*local_sys_dev == UCS_SYS_DEVICE_ID_UNKNOWN) { | ||
| *mem_type = UCS_MEMORY_TYPE_CUDA; | ||
| status = ucp_device_detect_local_sys_dev(context, *mem_type, | ||
| local_sys_dev); | ||
| if (status != UCS_OK) { | ||
| return status; | ||
| } | ||
|
|
||
| *local_md_map = ucp_device_detect_local_md_map(context, | ||
| *local_sys_dev); | ||
| } |
Member
There was a problem hiding this comment.
IMO we cannot just remove this because mem_list itself may be allocated in wrong place
|
|
||
| src_md_index = ucp_ep_md_index(ep, lane); | ||
| if (!(local_md_map & UCS_BIT(src_md_index))) { | ||
| if ((local_sys_dev != UCS_SYS_DEVICE_ID_UNKNOWN) && (local_md_map) && |
Member
There was a problem hiding this comment.
do we really need (local_md_map) condition ?
| if (i == 0) { | ||
| ucs_error("failed to select lane for local device %s", | ||
| ucs_topo_sys_device_get_name(local_sys_dev)); | ||
| ucs_error("failed to select lane"); |
| params); | ||
| ucp_mem_type_pack(worker, &counter_value, counter_ptr, | ||
| sizeof(counter_value), mem_type); | ||
| if (UCP_MEM_IS_HOST(mem_type)) { |
| if (UCP_MEM_IS_HOST(mem_type)) { | ||
| memcpy(counter_ptr, &counter_value, sizeof(counter_value)); | ||
| } else { | ||
| ucp_mem_type_unpack(worker, counter_ptr, &counter_value, |
yosefe
reviewed
Dec 14, 2025
yosefe
previously approved these changes
Dec 14, 2025
yosefe
approved these changes
Dec 15, 2025
yosefe
enabled auto-merge (squash)
December 15, 2025 08:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Support transfer to host memory using device api.
Why?
Because we can.