Repository navigation
[ROCm] Retry copy-kernel profiler checks that miss the kernel - #200694
pablo-garay wants to merge 2 commits into
Conversation
Signed-off-by: pablo-garay <[email protected]>
PR Status: missing actionable issueAuto PR Triage did not find either of the following when it checked this PR:
Such PRs are a low priority for maintainers to review and might not get a response given the very high volume of PRs we receive. Please focus on If one of these applies, add the matching line to the PR description. If there is no 🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/200694
Note: Links to docs will display an error until the docs builds have been completed.
|
|
@pytorchbot label ciflow/rocm-mi300 ciflow/inductor-rocm-mi300 module:rocm |
|
The ciflow label(s) ciflow/rocm-mi300, ciflow/inductor-rocm-mi300 will be added, but CI won't be triggered until the workflows are approved (scroll to the bottom of this page). Please ping one of the reviewers if you do not have access to approve and run workflows. |
|
Didn't find following labels among repository labels: module:rocm |
|
The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:
Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows. |
1 similar comment
|
The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:
Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows. |
jeffdaily
left a comment
There was a problem hiding this comment.
My agent came up with this analysis, but I've read and approved it.
- The job cited in the description (114884413906) contradicts the retry: in process 38371 the uint8 check hit once and then the next three profiled sessions all missed, and the first fresh process (38400) repeated that pattern. With attempts=3 that job still fails. The miss persists across profiler sessions in a process, which points at kineto RocprofLogger state across start/stop (see #199973, #200296) rather than an occasional dropped record. Please file an issue for the profiler bug and check whether those PRs fix it before re-enabling these tests.
- If a test-side workaround stays, gate it on
torch.version.hip; as written it triples every expected-False check on CUDA, including the 4 GB copy intest_copy_strided_chunk_64bit.- The description needs the PR template sections (linked actionable issue or supporting maintainer, BC-breaking, human-written summary).
On CUDA the retry tripled every expected-False check, including the 4 GB copy in test_copy_strided_chunk_64bit. Signed-off-by: pablo-garay <[email protected]>
|
@jeffdaily thanks. The retry is now gated on |
jeffdaily
left a comment
There was a problem hiding this comment.
My agent came up with this analysis, but I've read and approved it.
- Per #200903 the miss is sticky within a process: job 114884413906 missed three consecutive sessions after a hit, and the fresh process repeated it. An in-process retry cannot turn that job green, and there is no evidence that any of the 13 disabled variants failed transiently. The comment at
test_torch.py:124("occasionally drops kernel records") also contradicts the issue.- #200296 does not touch the profiler session lifecycle, so it is unlikely to fix #200903; #199973 (RocprofLogger teardown) is the better candidate. Please check #200903 against that, and re-enable the tests on top of a real fix with no retry. Until then I don't see what this PR buys; consider closing it.
|
My agent rechecked the CI log;
|
spin fixlint)Linked issue or supporting maintainer
Part of #200903
BC-breaking?
No
Summary (human written only)
The copy-kernel dispatch tests in
test_torch.py(test_copy_strided_chunk*,test_copy_transpose_tiled*) check which kernel ran by looking for it in the profiler events. On ROCm the profiler intermittently misses the kernel record, and the flaky bot has disabled 13 variants (#200246, #199996, #200382, #199890, #199910, #200383, #200400, #200401, #199997, #199016, #198911, #199891, #199893). The profiler bug is tracked in #200903. This routes both helpers through one_copy_uses_kernelthat, on ROCm only, retries the profiled copy up to 3 times when the kernel is not seen; a miss cannot produce a false positive, so expected-False checks stay strict, and CUDA keeps a single attempt.Agent details (if applicable)
An agent helped analyze the CI failures, write the retry helper, and draft this description; I reviewed all of it.