Skip to content

How to use nvlink in ucx #9896

Answered by Akshay-Venkatesh
lijh5 asked this question in Q&A
Discussion options

You must be logged in to vote

May I ask if ucx uses cuda_ipc for intra node GPU communication

Yes all intra-node inter-GPU communication as long as CUDA allows mapping peer GPU's memory between the two GPUs. On most PCIe and all NVLINK-connected systems, this is true. You can use nvidia-smi topo -m to check reachability between GPUs.

Why only check nvlinks (struct_cuda_ipc_get_device_cvlinks) when get_zcopy, and not when put_zcopy?

On many systems which have cuda-ipc realized over PCIe instead of NVLINK, get performance is slower than puts so we want to force protocols layer to use only puts under such circumstances. So when checking if get_zcopy operations should be used, we check if NVLINKs are present and if no…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lijh5
Comment options

Answer selected by lijh5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants