Ensure the process id to thread id to node id index is maintained.#200
Ensure the process id to thread id to node id index is maintained.#200sanrise wants to merge 1 commit intofacebookresearch:mainfrom
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.
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.
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