Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/184567
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 1 Unrelated Failure, 2 Unclassified FailuresAs of commit 3a30647 with merge base 25aff58 ( NEW FAILURES - The following jobs have failed:
UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:
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. |
|
@guangyey , pls. fix the linter issue. |
Done. |
|
@pytorchbot drci |
|
@claude review these changes |
|
Claude finished @jansel's task in 2m 5s —— View job Code Review: Generalize InductorBenchmarker to support non-CUDA device
Overall, this is a solid change that correctly generalizes the benchmarking infrastructure from CUDA-only to support multiple accelerators (XPU, etc.) using PyTorch's generic device abstractions. The approach is sound. A few observations: Potential Issue:
|
|
duplicated with #183693 |
|
@claude review these changes |
|
Claude finished @guangyey's task in 2m 10s —— View job Code Review: Generalize InductorBenchmarker to support non-CUDA device
This PR has two changes to 1. Cache size property rename (
|
| # device kernel links to but which is absent from the profiler event tree. | ||
| # Include kineto corr IDs of all CPU events within the _CALLABLE time | ||
| # window to cover these hidden dispatches. | ||
| callable_kineto_windows: list[tuple[int, int]] = [] |
There was a problem hiding this comment.
Hi @jansel, we made a follow-up fix after your PR #183693 landed.
Problem: The fallback path in _get_callable_device_kernel_time_us fails on XPU. Unlike CUDA, XPU's record_function does not emit a GPU-side user_annotation kineto event, so the primary timing path misses and the fallback is triggered. The fallback correlates device kernels to the _CALLABLE region by matching each kernel's linked_correlation_id against profiler event IDs from the _CALLABLE subtree — but this match fails because aten::sum (no-dim overload) forwards to aten::sum (dim overload) via a second dispatcher call, producing a kineto CPU event whose corr ID the XPU kernel links to, yet which is absent from the profiler event tree.
Fix: After collecting profiler event IDs from the _CALLABLE subtree, also include kineto corr IDs of all CPU events whose timestamps fall within the _CALLABLE kineto annotation window. This covers hidden re-dispatches that don't appear in the profiler event tree.
Please let me know if you have concerns about the code change. Thanks!
There was a problem hiding this comment.
Thanks very much~
|
@claude explain those CI failures, check if they are related, and review the changes in this PR |
|
Claude finished @jansel's task in 2m 21s —— View job CI Failure Analysis & Code Review
CI Failures — Not Related to This PRBoth failing Windows jobs ( This is a pip self-protection error: the CI script is running The two "UNCLASSIFIED" XPU failures also show the same error pattern on Windows XPU runners. Code ReviewThe PR makes two changes to 1. Cache size property fix (line 514)for attr in ("L2_cache_size", "last_level_cache_size"):Previously 2. Kineto event correlation ID fix (lines 391–413)This addresses the root cause of #184470. The profiler event tree may not include all CPU dispatch events — specifically when an op like Assessment: The fix is correct and well-motivated. A few observations:
No blocking issues. The code looks good to merge once CI infra is fixed independently. |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 5 checks: xpu / win-vs2022-xpu-n-py3 / build, xpu / win-vs2022-xpu-n-1-py3 / build, trunk / win-vs2022-cuda13.0-py3 / build, trunk / win-vs2022-cpu-py3 / build, inductor / unit-test / inductor-test / test-osdc (inductor, 2, 2, mt-l-x86aavx2-29-113-a10g) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…84567) # Motivate fix pytorch#184470, which introduce by pytorch#175097 fix pytorch#184491 fix pytorch#185616 Pull Request resolved: pytorch#184567 Approved by: https://github.com/jansel ghstack dependencies: pytorch#184499
…84567) # Motivate fix pytorch#184470, which introduce by pytorch#175097 fix pytorch#184491 fix pytorch#185616 Pull Request resolved: pytorch#184567 Approved by: https://github.com/jansel ghstack dependencies: pytorch#184499
…84567) # Motivate fix pytorch#184470, which introduce by pytorch#175097 fix pytorch#184491 fix pytorch#185616 Pull Request resolved: pytorch#184567 Approved by: https://github.com/jansel ghstack dependencies: pytorch#184499
…84567) # Motivate fix pytorch#184470, which introduce by pytorch#175097 fix pytorch#184491 fix pytorch#185616 Pull Request resolved: pytorch#184567 Approved by: https://github.com/jansel ghstack dependencies: pytorch#184499
Stack from ghstack (oldest at bottom):
Motivate
fix #184470, which introduce by #175097
fix #184491
fix #185616
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo