-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[aotd] debug profile runtime durations #135501
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/135501
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Unrelated FailureAs of commit d96cb82 with merge base dfb2b66 ( NEW FAILURE - The following job has failed:
BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
|
||
| # Key to use for AOTAutogradCache | ||
| cache_key: Optional[str] = None | ||
| profile_duration: bool = os.environ.get("PYTORCH_AOTD_DEBUG_PROFILE", "0") == "1" |
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.
Wouldn't it be better for this to be controlled in torch/_functorch/config.py? Rather than randomly scattered here
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.
Oh, yes, did not know about functorch/config.
|
|
||
| def get_events() -> List[Event]: | ||
| global events | ||
| return events |
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 problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Mostly did it for debug profiling, we can ignore this PR. I will start using James's profiler when start working on subclasses compilation perf.
|
Abandoning in favor of #136478 |
ghstack-source-id: 63e440b Pull Request resolved: pytorch/pytorch#135501
Stack from ghstack (oldest at bottom):