Skip to content

Conversation

@sanrise
Copy link
Contributor

@sanrise sanrise commented Mar 20, 2025

Summary: Currently this map is not set since ROOT_THREAD is not a valid node anymore. We can safely read thr pid and tid against a node id and store in this map.

Differential Revision: D71565563

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 20, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D71565563

tid = self.nodes[id].tid
self.proc_group[pid][tid] = id
tid = self.nodes[id].tid
self.proc_group[pid][tid] = id
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will make this a list

sanrise added a commit to sanrise/param that referenced this pull request Mar 20, 2025
…acebookresearch#200)

Summary:

Currently this map is not set since __ROOT_THREAD__ is not a valid node anymore. We can safely read thr pid and tid against a node id and store in this map.

Differential Revision: D71565563
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D71565563

@shengfukevin
Copy link
Contributor

Hi Darshan, the second dictionary of self.proc_group is a map between thread id to the thread node id. After your change, it becomes the thread id to the list of nodes belong to that thread.

I think the fix is to change ROOT_THREAD to [pytorch|profiler|execution_trace|thread]

sanrise added a commit to sanrise/param that referenced this pull request Mar 21, 2025
…acebookresearch#200)

Summary:

Currently this map is not set since __ROOT_THREAD__ is not a valid node anymore. We can safely read thr pid and tid against a node id and store in this map.

Differential Revision: D71565563
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D71565563

@shengfukevin shengfukevin self-requested a review March 21, 2025 22:48
Copy link
Contributor

@shengfukevin shengfukevin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG2M! Thanks for the fix.

…acebookresearch#200)

Summary:

Currently this map is not set since __ROOT_THREAD__ is not a valid node anymore. We can safely read thr pid and tid against a node id and store in this map.

Reviewed By: shengfukevin

Differential Revision: D71565563
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D71565563

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 75d1473.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants