Skip to content

Commit

Permalink
Revert D34230284: [pytorch][PR] [WIP][Kineto] Manual Submodule Update
Browse files Browse the repository at this point in the history
Test Plan: revert-hammer

Differential Revision:
D34230284 (pytorch@c088c8f)

Original commit changeset: cbecaf79e51a

Original Phabricator Diff: D34230284 (pytorch@c088c8f)

fbshipit-source-id: 6976e979c3d43ccd518248ab62082538504654c3
(cherry picked from commit 9a0ad66)
  • Loading branch information
malfet authored and pytorchmergebot committed Mar 6, 2022
1 parent 486bd9f commit e7730ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/kineto
Submodule kineto updated 170 files
5 changes: 5 additions & 0 deletions torch/csrc/autograd/profiler_kineto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,12 @@ struct KinetoThreadLocalState : public ProfilerThreadLocalStateBase {
auto iter = tidSeq2activity.find(key);
if (iter != tidSeq2activity.end()) {
libkineto::GenericTraceActivity* fwd = iter->second;
#ifdef USE_KINETO_UPDATED
fwd->flow.start = true;
#else
activity.flow.linkedActivity = fwd; // Only destination side set this,
// to distinguish with start side.
#endif
activity.flow.id = fwd->flow.id = fwd_bwd_link_id;
activity.flow.type = fwd->flow.type = libkineto::kLinkFwdBwd;
++fwd_bwd_link_id;
Expand Down

0 comments on commit e7730ea

Please sign in to comment.