-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Revert "reverted diff: Add python stack tracing option on on-demand flow" #82378
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
🔗 Helpful links
✅ No Failures (0 Pending)As of commit a2741ff (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
|
This pull request was exported from Phabricator. Differential Revision: D38220201 |
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.
You can't reuse USE_KINETO_UPDATED. If you want to go this route you have to define a new variable or switch it to a version counter.
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.
This #ifdef is just a workround to pass CI tests (as FB internal diff contain changes on both pytorch and kineto). This #ifdef guard will be removed on submodule update.
Last time this workaround that has successfully worked as I heard failed for some reason... so I first retry this workaround. If this is failing again, I will refactor/rewrite my changes.
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.
I don't see why this was needed. Can't you just add an entry?
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.
There was a lint bug. This is just a workaround.
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.
You can reduce the size of the #ifdef block:
#ifdef VERSION_GUARD_VAR
void start(bool withStack) override {
#else
void start() override {
bool withStack{false};
#endif
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.
as mentioned above. this guard will be removed at the end.
|
This pull request was exported from Phabricator. Differential Revision: D38220201 |
f532729 to
0f42fd2
Compare
…low" (pytorch#82378) Summary: Pull Request resolved: pytorch#82378 Changes: add an option in Config; can use 'PYTHON_STACK_TRACE=true' option (via .conf) deliver PYTHON_STACK_TRACE value to kineto_client_interface start() abstract class also changed. Trace after changes by running //kineto/libkineto/fb/integration_tests/trace_tester.cpp (requested by chaekit) https://www.internalfb.com/intern/perfdoctor/trace_view?filepath=tree%2Ftraces%2Fdynocli%2F0%2F1657304871%2F127.0.0.1%2Flibkineto_activities_3502962.json.gz&bucket=gpu_traces Test Plan: launch a python test case with the following command for on-demand flow: echo -e "PYTHON_STACK_TRACE=true" > /tmp/scott_kineto.conf && dyno gputrace --gputrace_duration 300ms --gpuconf /tmp/scott_kineto.conf Reviewed By: chaekit Differential Revision: D38220201 fbshipit-source-id: 071b7158768cb16d253490d269ad0692f470f86c
…low" (#82378) Summary: X-link: pytorch/pytorch#82378 Changes: add an option in Config; can use 'PYTHON_STACK_TRACE=true' option (via .conf) deliver PYTHON_STACK_TRACE value to kineto_client_interface start() abstract class also changed. Trace after changes by running //kineto/libkineto/fb/integration_tests/trace_tester.cpp (requested by chaekit) https://www.internalfb.com/intern/perfdoctor/trace_view?filepath=tree%2Ftraces%2Fdynocli%2F0%2F1657304871%2F127.0.0.1%2Flibkineto_activities_3502962.json.gz&bucket=gpu_traces Reviewed By: chaekit Differential Revision: D38220201 fbshipit-source-id: e4224bd87aed9cf662dfd95bc63573c3415b5997
0f42fd2 to
a0d7776
Compare
…low" (pytorch#645) Summary: X-link: pytorch/kineto#645 Pull Request resolved: pytorch#82378 Changes: add an option in Config; can use 'PYTHON_STACK_TRACE=true' option (via .conf) deliver PYTHON_STACK_TRACE value to kineto_client_interface start() abstract class also changed. Trace after changes by running //kineto/libkineto/fb/integration_tests/trace_tester.cpp (requested by chaekit) https://www.internalfb.com/intern/perfdoctor/trace_view?filepath=tree%2Ftraces%2Fdynocli%2F0%2F1657304871%2F127.0.0.1%2Flibkineto_activities_3502962.json.gz&bucket=gpu_traces Test Plan: launch a python test case with the following command for on-demand flow: echo -e "PYTHON_STACK_TRACE=true" > /tmp/scott_kineto.conf && dyno gputrace --gputrace_duration 300ms --gpuconf /tmp/scott_kineto.conf Reviewed By: chaekit Differential Revision: D38220201 fbshipit-source-id: 07d5d5263e6d470dd17acb04fe0c3e2d4439fd1c
|
This pull request was exported from Phabricator. Differential Revision: D38220201 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D38220201 |
a0d7776 to
dc40a7e
Compare
|
This pull request was exported from Phabricator. Differential Revision: D38220201 |
dc40a7e to
60f2243
Compare
…low" (pytorch#645) Summary: X-link: pytorch/kineto#645 Pull Request resolved: pytorch#82378 Changes: add an option in Config; can use 'PYTHON_STACK_TRACE=true' option (via .conf) deliver PYTHON_STACK_TRACE value to kineto_client_interface start() abstract class also changed. Trace after changes by running //kineto/libkineto/fb/integration_tests/trace_tester.cpp (requested by chaekit) https://www.internalfb.com/intern/perfdoctor/trace_view?filepath=tree%2Ftraces%2Fdynocli%2F0%2F1657304871%2F127.0.0.1%2Flibkineto_activities_3502962.json.gz&bucket=gpu_traces Test Plan: launch a python test case with the following command for on-demand flow: echo -e "PYTHON_STACK_TRACE=true" > /tmp/scott_kineto.conf && dyno gputrace --gputrace_duration 300ms --gpuconf /tmp/scott_kineto.conf Reviewed By: chaekit Differential Revision: D38220201 fbshipit-source-id: dddbeed163af37b965e663b66dd92f030fdcba42
…low" (pytorch#645) Summary: Pull Request resolved: pytorch#645 X-link: pytorch/pytorch#82378 Changes: add an option in Config; can use 'PYTHON_STACK_TRACE=true' option (via .conf) deliver PYTHON_STACK_TRACE value to kineto_client_interface start() abstract class also changed. Trace after changes by running //kineto/libkineto/fb/integration_tests/trace_tester.cpp (requested by chaekit) https://www.internalfb.com/intern/perfdoctor/trace_view?filepath=tree%2Ftraces%2Fdynocli%2F0%2F1657304871%2F127.0.0.1%2Flibkineto_activities_3502962.json.gz&bucket=gpu_traces Reviewed By: chaekit Differential Revision: D38220201 fbshipit-source-id: 94937bbbf4db658d184334eb7a9393610fecfed9
60f2243 to
a2741ff
Compare
|
This pull request was exported from Phabricator. Differential Revision: D38220201 |
…low" (#645) Summary: Pull Request resolved: #645 X-link: pytorch/pytorch#82378 Changes: add an option in Config; can use 'PYTHON_STACK_TRACE=true' option (via .conf) deliver PYTHON_STACK_TRACE value to kineto_client_interface start() abstract class also changed. Trace after changes by running //kineto/libkineto/fb/integration_tests/trace_tester.cpp (requested by chaekit) https://www.internalfb.com/intern/perfdoctor/trace_view?filepath=tree%2Ftraces%2Fdynocli%2F0%2F1657304871%2F127.0.0.1%2Flibkineto_activities_3502962.json.gz&bucket=gpu_traces Reviewed By: chaekit Differential Revision: D38220201 fbshipit-source-id: 8cef92522e957c2e0bedd4ae33231171cc188fa2
|
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
|
@pytorchbot successfully started a merge job. Check the current status here. |
|
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
|
Can't merge closed PR #82378 |
…low" (#645) Summary: X-link: pytorch/kineto#645 Pull Request resolved: #82378 Changes: add an option in Config; can use 'PYTHON_STACK_TRACE=true' option (via .conf) deliver PYTHON_STACK_TRACE value to kineto_client_interface start() abstract class also changed. Trace after changes by running //kineto/libkineto/fb/integration_tests/trace_tester.cpp (requested by chaekit) https://www.internalfb.com/intern/perfdoctor/trace_view?filepath=tree%2Ftraces%2Fdynocli%2F0%2F1657304871%2F127.0.0.1%2Flibkineto_activities_3502962.json.gz&bucket=gpu_traces Test Plan: launch a python test case with the following command for on-demand flow: echo -e "PYTHON_STACK_TRACE=true" > /tmp/scott_kineto.conf && dyno gputrace --gputrace_duration 300ms --gpuconf /tmp/scott_kineto.conf Reviewed By: chaekit Differential Revision: D38220201 fbshipit-source-id: 8cef92522e957c2e0bedd4ae33231171cc188fa2
|
Hey @slgong-fb. |
Summary:
Changes:
add an option in Config; can use 'PYTHON_STACK_TRACE=true' option (via .conf)
deliver PYTHON_STACK_TRACE value to kineto_client_interface start()
abstract class also changed.
Trace after changes by running //kineto/libkineto/fb/integration_tests/trace_tester.cpp (requested by chaekit)
https://www.internalfb.com/intern/perfdoctor/trace_view?filepath=tree%2Ftraces%2Fdynocli%2F0%2F1657304871%2F127.0.0.1%2Flibkineto_activities_3502962.json.gz&bucket=gpu_traces
Test Plan:
launch a python test case with the following command for on-demand flow:
echo -e "PYTHON_STACK_TRACE=true" > /tmp/scott_kineto.conf && dyno gputrace --gputrace_duration 300ms --gpuconf /tmp/scott_kineto.conf
Reviewed By: chaekit
Differential Revision: D38220201