Repository navigation
Conversation
apbose
force-pushed
the
abose/followup_subgroup4680_parent_support
branch
from
November 24, 2026 07:34
3fe1d75 to
b7bf9b3
Compare
This branch has not been deployed
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.
Allow compilation inside
distributed_context(subgroup)while preserving the engine parent's ordered global membership. For a parent[2, 3], collective participants[2, 3]become communicator-local IDs[0, 1]. Participants outside the parent are rejected, and rooted operations use the parent's numbering.All requested engine parents are validated before any binding is changed, including contexts containing multiple modules. Rejected entry preserves the previous active group, bindings and engine discovery. The regression checks mixed-parent rejection, repeated rejection and valid-parent reuse.
The four-GPU roundtrip coverage is split by runtime:
torch_tensorrt.save, then check exported save/load, repeated wrong-parent rejection and correct-parent execution.TRTEnginefrom the same compiled engine metadata and call its execution API directly; pickle/reload and check rejection/rebinding. This avoids pretending that changing feature flags after import can replace the registered C++ operator schema. It covers the Python engine API, not Python-only AOT export.Compatibility: serialized-engine ABI changes from 10 to 11, so existing engines must be rebuilt. Engine caching remains rejected for subgroup-parent compilation until its cache identity includes the ordered parent mapping. Different groups in one engine still require the TensorRT/Myelin fix; this PR inherits #4772's separate mesh capability gate.
Validation of this update: 47 CPU context/contract tests and 12 parent-mapping tests (including two mixed-parent subcases), with real PyTorch 2.15 CPU and TensorRT construction/imports stubbed; ordered-parent serialization helper checks; formatting, parsing and diff checks. Changed runtime/mapping files pass Ruff; the existing NCCL test-file diagnostics are unchanged from the updated parent. Earlier B300 diagnostics validated the corrected C++ save/load approach and direct subgroup parents. The revised GPU tests, including direct Python engine execution, were not rerun in this GPU-less session; the PR remains a draft.
Stack: depends on #4772 (
abose/followup_subgroup4680) and has been restacked onto its fixes. The diff contains the subgroup-parent enhancement and its follow-up fixes.