Skip to content

[ROCm][CI] upgrade CI to ROCm 6.3 - #142152

Closed
jithunnair-amd wants to merge 4 commits into
pytorch:mainfrom
ROCm:rocm63_ci
Closed

jithunnair-amd wants to merge 4 commits into
pytorch:mainfrom
ROCm:rocm63_ci

Conversation

@jithunnair-amd

@jithunnair-amd jithunnair-amd commented Dec 5, 2024 •

Copy link
Copy Markdown
Collaborator

@pytorch-bot

pytorch-bot Bot commented Dec 5, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 13 New Failures, 2 Cancelled Jobs, 3 Unrelated Failures

As of commit 970a3dc with merge base 8d9ff9c (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOBS - The following jobs were cancelled. Please retry:

BROKEN TRUNK - The following jobs 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.

@pytorch-bot pytorch-bot Bot added ciflow/rocm module: rocm AMD GPU support for Pytorch topic: not user facing topic category labels Dec 5, 2024
@jeffdaily

Copy link
Copy Markdown
Collaborator

@pytorchbot rebase

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Tried to rebase and push PR #142152, but it was already up to date. Try rebasing against main by issuing:
@pytorchbot rebase -b main

@jeffdaily

Copy link
Copy Markdown
Collaborator

@pytorchbot rebase -b main

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Successfully rebased rocm63_ci onto refs/remotes/origin/main, please pull locally before adding more changes (for example, via git checkout rocm63_ci && git pull --rebase)

@jeffdaily
jeffdaily marked this pull request as ready for review December 11, 2024 00:02
@jeffdaily
jeffdaily requested review from a team and jeffdaily as code owners December 11, 2024 00:02
@jithunnair-amd jithunnair-amd added ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR ciflow/inductor-rocm Trigger "inductor" config CI on ROCm labels Dec 12, 2024
@jeffdaily

Copy link
Copy Markdown
Collaborator

@pytorchbot rebase

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Successfully rebased rocm63_ci onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout rocm63_ci && git pull --rebase)

@jeffdaily

Copy link
Copy Markdown
Collaborator

@pytorchbot rebase -b main

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Successfully rebased rocm63_ci onto refs/remotes/origin/main, please pull locally before adding more changes (for example, via git checkout rocm63_ci && git pull --rebase)

@jeffdaily

Copy link
Copy Markdown
Collaborator

@pytorchbot rebase

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Successfully rebased rocm63_ci onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout rocm63_ci && git pull --rebase)

@pruthvistony pruthvistony left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@jeffdaily

Copy link
Copy Markdown
Collaborator

@pytorchbot merge -f "ROCm-only changes to CI docker image and workflows; all ROCm tests passed; ignore all other failures as unrelated"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

pytorchmergebot pushed a commit that referenced this pull request Oct 7, 2026
…rseForward (#199922)

`RNNTest.BidirectionalLSTMReverseForward_CUDA` in `cpp/test_api` fails consistently on ROCm MI210 (`linux-jammy-rocm-py3.11-mi200`, original run plus 2 reruns), e.g. https://github.com/pytorch/pytorch/actions/runs/37407982276/job/112113883767:

```
test/cpp/api/rnn.cpp:544: Failure
Expected equality of these values:
  std::get<0>(std::get<1>(bi_output))[1][0][0].item<float>()
    Which is: -0.240088522
  std::get<0>(std::get<1>(reverse_output))[0][0][0].item<float>()
    Which is: -0.240088537
```

**Root cause:** the ROCm 6.3 upgrade (#142152) switched the per-timestep output comparison in this test to `ASSERT_NEAR` with `tolerance = 1e-5`, but left the final hidden/cell state (`h_n`/`c_n`) checks as exact `ASSERT_EQ`. Those checks never actually ran on ROCm because `test_api` collected 0 tests there until #199440 ("Fix C++ tests silently not running on ROCm CI") landed. Now that it runs, `h_n` differs by ~1.5e-8 (float32 rounding). The reverse-direction `h_n` is the same value as the last reverse output the loop already compares with tolerance, so the exact check is inconsistent within the test itself.

**Fix:** use `ASSERT_NEAR` with the test's existing `tolerance` for the `h_n` and `c_n` checks. No new tolerance is introduced; CPU and CUDA behavior is unaffected beyond allowing the same 1e-5 slack already used for outputs.

**Testing:** the observed difference (1.5e-8) is well within the existing 1e-5 tolerance; relying on ROCm CI for the C++ test run.

This PR was authored with the help of an AI assistant.

Pull Request resolved: #199922
Approved by: https://github.com/jeffdaily
cyyever pushed a commit to BakeLab/pytorch that referenced this pull request Oct 11, 2026
…rseForward (pytorch#199922)

`RNNTest.BidirectionalLSTMReverseForward_CUDA` in `cpp/test_api` fails consistently on ROCm MI210 (`linux-jammy-rocm-py3.11-mi200`, original run plus 2 reruns), e.g. https://github.com/pytorch/pytorch/actions/runs/37407982276/job/112113883767:

```
test/cpp/api/rnn.cpp:544: Failure
Expected equality of these values:
  std::get<0>(std::get<1>(bi_output))[1][0][0].item<float>()
    Which is: -0.240088522
  std::get<0>(std::get<1>(reverse_output))[0][0][0].item<float>()
    Which is: -0.240088537
```

**Root cause:** the ROCm 6.3 upgrade (pytorch#142152) switched the per-timestep output comparison in this test to `ASSERT_NEAR` with `tolerance = 1e-5`, but left the final hidden/cell state (`h_n`/`c_n`) checks as exact `ASSERT_EQ`. Those checks never actually ran on ROCm because `test_api` collected 0 tests there until pytorch#199440 ("Fix C++ tests silently not running on ROCm CI") landed. Now that it runs, `h_n` differs by ~1.5e-8 (float32 rounding). The reverse-direction `h_n` is the same value as the last reverse output the loop already compares with tolerance, so the exact check is inconsistent within the test itself.

**Fix:** use `ASSERT_NEAR` with the test's existing `tolerance` for the `h_n` and `c_n` checks. No new tolerance is introduced; CPU and CUDA behavior is unaffected beyond allowing the same 1e-5 slack already used for outputs.

**Testing:** the observed difference (1.5e-8) is well within the existing 1e-5 tolerance; relying on ROCm CI for the C++ test run.

This PR was authored with the help of an AI assistant.

Pull Request resolved: pytorch#199922
Approved by: https://github.com/jeffdaily
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor-rocm Trigger "inductor" config CI on ROCm ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR Merged module: rocm AMD GPU support for Pytorch open source topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants