Skip to content

[fix] MD-TRT: rebind NCCL communicator after execution context invalidation - #4464

Open
apbose wants to merge 1 commit into
mainfrom
abose/md_nccl_rebind
Open

[fix] MD-TRT: rebind NCCL communicator after execution context invalidation#4464
apbose wants to merge 1 commit into
mainfrom
abose/md_nccl_rebind

Conversation

@apbose

@apbose apbose commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

bind_nccl_comm() attaches the communicator to the IExecutionContext. disable_profiling() and set_resource_allocation_strategy() dropped that context without clearing nccl_initialized, so the lazy re-bind in execute_engine.cpp never fired and the replacement context ran collectives with no communicator (~98% output mismatch). Mirrors runtime_settings().

bind_nccl_comm() attaches the communicator to the IExecutionContext.
disable_profiling() and set_resource_allocation_strategy() dropped that
context without clearing nccl_initialized, so the lazy re-bind in
execute_engine.cpp never fired and the replacement context ran collectives
with no communicator (~98% output mismatch). Mirrors runtime_settings().

Verified on 2 GPUs: both new tests fail before the fix and pass after.
@meta-cla meta-cla Bot added the cla signed label Aug 6, 2026
@apbose apbose changed the title fix MD-TRT: rebind NCCL communicator after execution context invalidation [fix] MD-TRT: rebind NCCL communicator after execution context invalidation Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant