Repository navigation
[cherry-pick][2.60.0][core][RDT] Fix RDT cross-device test (#66772) - #67212
Merged
sai-miduthuri merged 1 commit intoOct 21, 2026
Merged
Conversation
Looks like due to the sender side pool refactor #65205 the NIXL cross-device test was broken. This was because we weren't checking the memory type of the receive side tensors and only using the device type sent via the remote descriptors causing NIXL to fail because we were saying a CPU tensor was on CUDA, vice versa. Fixing it by also taking into account the device type on the target buffers. --------- Signed-off-by: Joshua Lee <[email protected]> (cherry picked from commit 36384df) Signed-off-by: Sai Miduthuri <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request enables cross-device tensor fetches in the RDT NIXL transport by separating local and remote memory types. It also adds a validation check to ensure all target buffers for an RDT object share the same device type, raising a ValueError if they are mixed. Corresponding unit tests have been added to verify this validation. There are no review comments to evaluate, and the changes look solid.
Yicheng-Lu-llll
approved these changes
Oct 20, 2026
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.
Cherry-pick of #66772 (master commit 36384df) onto
releases/2.60.0.Why
//python/ray/tests:rdt/test_rdt_nixlfails in the:ray: core: multi gpu testsand:ray: core: multi gpu cu130 testsjobs in all 11releases/2.60.0postmerge builds so far, including build 20362 for the current branch head. In each one,test_nixl_cross_device_fetchfails withNIXL_ERR_NOT_FOUND.The cause is #65205 (sender-side memory pool), which this branch has. Since then, a fetch into target buffers labels the receiver's buffers with the sender's device type, so a CPU buffer is described to NIXL as CUDA, and vice versa. #66772 gives the local and remote descriptor lists their own memory types. It also rejects target buffers that mix device types, and tests that.
On master, the test failed in every release-automation postmerge build that ran it, from the branch point through build 20195. It has passed in all 34 since build 20205, the first to include #66772.
Cherry-pick details
Applied cleanly with
git cherry-pick -x. The change is identical to the master commit:git patch-id --stable.nixl_tensor_transport.pyhunk headers. They start 2 lines earlier here, because this branch doesn't have the 2 lines [core][rdt] nixl: raise when a cached registration is smaller than the tensor #66777 added above them on master.No prerequisite commits are missing:
python/ray/experimental/rdt/orpython/ray/tests/rdt/between the branch cut and [core][RDT] Fix RDT cross-device test #66772. It changes the NIXL registration cache and adds a docstring note inutil.py; [core][RDT] Fix RDT cross-device test #66772 neither touches nor uses either change.test_rdt_nixl.pyis identical to master at 36384df, andnixl_tensor_transport.pydiffers only by [core][rdt] nixl: raise when a cached registration is smaller than the tensor #66777's lines.Not a duplicate: this branch doesn't contain #66772, and no PR against
releases/2.60.0references it.Testing
pre-commit run --files python/ray/experimental/rdt/nixl_tensor_transport.py python/ray/tests/rdt/test_rdt_nixl.pyI couldn't run
test_rdt_nixllocally because it needs GPUs and NIXL. In CI it runs in the:ray: core: multi gpu testsand:ray: core: multi gpu cu130 testsjobs. On premerge and microcheck, those jobs wait on the "run multi gpu tests" block step.AI assistance was used to prepare this cherry-pick.
🤖 Generated with Claude Code