Skip to content

Add comms Id to trace output JSON (#1286)#1299

Open
ycui1984 wants to merge 1 commit into
pytorch:mainfrom
ycui1984:export-D96153960
Open

Add comms Id to trace output JSON (#1286)#1299
ycui1984 wants to merge 1 commit into
pytorch:mainfrom
ycui1984:export-D96153960

Conversation

@ycui1984
Copy link
Copy Markdown
Contributor

Summary:

This is part of a larger effort to expose comms_id in profiler traces to enable correlating the same communication operation across different ranks.

This diff adds the Kineto side: reading "Comms Id" from the profiler metadata and writing it into the Chrome trace JSON output. When the metadata key is present, it will be included in the trace event args, making it visible in trace viewers.

The PyTorch side (computing and emitting the comms_id) will be in a follow-up diff after the Kineto submodule is updated.

Differential Revision: D96153960

Summary:

This is part of a larger effort to expose comms_id in profiler traces to enable correlating the same communication operation across different ranks.

This diff adds the Kineto side: reading "Comms Id" from the profiler metadata and writing it into the Chrome trace JSON output. When the metadata key is present, it will be included in the trace event args, making it visible in trace viewers.

The PyTorch side (computing and emitting the comms_id) will be in a follow-up diff after the Kineto submodule is updated.

Differential Revision: D96153960
@meta-cla meta-cla Bot added the cla signed label Mar 11, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Mar 11, 2026

@ycui1984 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96153960.

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