Skip to content

Conversation

chaekit
Copy link
Contributor

@chaekit chaekit commented Apr 5, 2023

Summary: having a valid kineto_activity_ before logging metadata is a crucial invariant worthy of asserts

Test Plan:

Test with D44362040

Verify that we get SOFT_ASSERT logs before and after the diff

Log

W0329 11:29:34.269824 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.270107 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.270385 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.270653 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.270941 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.271199 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.271476 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.271724 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.272003 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.272280 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.272553 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.272822 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.273092 718148 profiler_kineto.cpp:122] Warning:  (function operator())

Reviewed By: aaronenyeshi

Differential Revision: D44513152

@pytorch-bot
Copy link

pytorch-bot bot commented Apr 5, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/98442

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 0181ec3:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot
Copy link
Contributor

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

Copy link
Member

@aaronenyeshi aaronenyeshi left a comment

Choose a reason for hiding this comment

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

LGTM, reviewed internally

Summary:
Pull Request resolved: pytorch#98442

having a valid `kineto_activity_` before logging metadata is a crucial invariant worthy of asserts

Test Plan:
## Test with D44362040

Verify that we get SOFT_ASSERT logs before and after the diff

## Log
```
W0329 11:29:34.269824 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.270107 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.270385 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.270653 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.270941 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.271199 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.271476 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.271724 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.272003 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.272280 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.272553 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.272822 718148 profiler_kineto.cpp:122] Warning:  (function operator())
W0329 11:29:34.273092 718148 profiler_kineto.cpp:122] Warning:  (function operator())
```

Reviewed By: aaronenyeshi

Differential Revision: D44513152

fbshipit-source-id: 60eb53248290993f3128ad8dc89c55bda58e2691
@facebook-github-bot
Copy link
Contributor

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

@chaekit chaekit force-pushed the export-D44513152 branch from 93b1302 to 0181ec3 Compare April 6, 2023 03:04
@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Apr 6, 2023
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

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

Labels

ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants