Add new NVSHMEM transpose communication backend with SM-based P2P copies.#114
Merged
romerojosh merged 14 commits intomainfrom Mar 17, 2026
Merged
Add new NVSHMEM transpose communication backend with SM-based P2P copies.#114romerojosh merged 14 commits intomainfrom
romerojosh merged 14 commits intomainfrom
Conversation
Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
Collaborator
Author
|
/build |
|
🚀 Build workflow triggered! View run |
|
✅ Build workflow passed! View run |
Signed-off-by: Josh Romero <joshr@nvidia.com>
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.
This PR introduces a new transpose communication backend,
CUDECOMP_TRANSPOSE_COMM_NVSHMEM_SM, that uses SM-driven transfers to perform intra-group (NVLink-connected) P2P transfers instead of using copy-engine (CE) driven transfers.The existing
CUDECOMP_TRANSPOSE_COMM_NVSHMEMbackend issues all intra-group puts via the NVSHMEM host APInvshmemx_putmem_on_stream, which dispatches through the CEs. For large transfers, it is often the case that CE-driven transfers achieve higher bandwidth than SM-driven ones, which is why the existing backend was designed that way. However, as per-peer transfer sizes reduce, like in strong scaling or extreme weak scaling scenarios, SM-driven transfers become more competitive. In addition to this, the GPUs on systems equipped with NVSwitch-connectivity between GPUs (e.g., DGX systems, MNNVL systems) can typically only run a single CE-driven P2P transfer at a time, which can be a problem if individual transfer sizes become to small to saturate NVLink on their own. SM-driven transfers can more effectively run NVLink transfers to multiple peers concurrently, providing better total NVLink utilization in these scenarios.Historically, the NCCL backend of cuDecomp has served the role of the "SM-driven" alltoall backend to fall back on when the CE-driven NVSHMEM backends were suboptimal. This PR provides a new alternative SM-driven backend for cuDecomp to make use of.