-
Notifications
You must be signed in to change notification settings - Fork 66
Ensure the process id to thread id to node id index is maintained. #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D71565563 |
et_replay/execution_trace.py
Outdated
| tid = self.nodes[id].tid | ||
| self.proc_group[pid][tid] = id | ||
| tid = self.nodes[id].tid | ||
| self.proc_group[pid][tid] = id |
There was a problem hiding this comment.
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
…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
916cd95 to
199fbe4
Compare
|
This pull request was exported from Phabricator. Differential Revision: D71565563 |
|
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] |
…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
199fbe4 to
15aade9
Compare
|
This pull request was exported from Phabricator. Differential Revision: D71565563 |
shengfukevin
left a comment
There was a problem hiding this 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
15aade9 to
251307d
Compare
|
This pull request was exported from Phabricator. Differential Revision: D71565563 |
|
This pull request has been merged in 75d1473. |
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