Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

[codex] bump Windows ROCm to 7.2.1 - #1690

Merged
benceruleanlu merged 2 commits into
mainfrom
bl/bump-windows-rocm-7-2-1
Apr 20, 2026
Merged

[codex] bump Windows ROCm to 7.2.1#1690
benceruleanlu merged 2 commits into
mainfrom
bl/bump-windows-rocm-7-2-1

Conversation

@benceruleanlu

@benceruleanlu benceruleanlu commented Apr 17, 2026

Copy link
Copy Markdown
Member

Summary

  • bump the Windows AMD ROCm package set from the older rocm-rel-7.2 artifacts to the latest public Windows release, rocm-rel-7.2.1
  • align the SDK package list with AMD's current Windows instructions by including rocm_sdk_devel
  • replace generic AMD install exit-code errors with guidance that points users to the documented Adrenalin 26.2.2 requirement for ROCm 7.2.1 on Windows

Why

ROCm overall has a 7.2.2 release, but AMD's public Windows ROCm/PyTorch feed currently exposes rocm-rel-7.2.1 as the newest installable Windows package set. Desktop was still pinned to the older rocm-rel-7.2 artifacts, so this updates the app to the latest Windows ROCm release that is publicly available today.

Impact

  • AMD installs on Windows now use the current public ROCm 7.2.1 artifacts instead of the older 7.2 preview/dev package set
  • install failures now tell users to update the AMD graphics driver instead of only surfacing a raw exit code

Validation

  • yarn install --immutable
  • yarn format
  • yarn lint
  • yarn typecheck
  • yarn test:unit

┆Issue is synchronized with this Notion page by Unito

Summary by CodeRabbit

  • Chores

    • Updated AMD ROCm GPU drivers and pinned packages from 7.2.0 to 7.2.1.
  • Improvements

    • Improved AMD Windows installation error messages to provide clearer diagnostics and explicit driver/release requirements.

@coderabbitai

coderabbitai Bot commented Apr 17, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f3b07f2d-d5c5-4241-8db5-73663b0e4296

📥 Commits

Reviewing files that changed from the base of the PR and between 61153a8 and 2ee45e2.

📒 Files selected for processing (3)
  • assets/requirements/amd_requirements.txt
  • assets/requirements/windows_amd.compiled
  • src/constants.ts
✅ Files skipped from review due to trivial changes (1)
  • assets/requirements/amd_requirements.txt
🚧 Files skipped from review as they are similar to previous changes (2)
  • assets/requirements/windows_amd.compiled
  • src/constants.ts

📝 Walkthrough

Walkthrough

Updated AMD ROCm package references from 7.2 → 7.2.1 across assets and TypeScript; added exported AMD Windows constants and URL helper; and replaced generic AMD Windows install failure messages with a formatted error including driver and ROCm-release context.

Changes

Cohort / File(s) Summary
AMD Asset overrides & pins
assets/override_amd.txt, assets/requirements/amd_requirements.txt, assets/requirements/windows_amd.compiled
Updated ROCm release paths from rocm-rel-7.2 / 7.2.0.dev0rocm-rel-7.2.1 / 7.2.1; adjusted wheel filenames build tags from +rocmsdk20260116+rocm7.2.1; updated tarball and wheel URLs. Note: rocm-sdk-devel is intentionally omitted (comment added).
TypeScript AMD constants & URLs
src/constants.ts
Added exported constants AMD_ROCM_WINDOWS_RELEASE and AMD_PYTORCH_WINDOWS_REQUIRED_DRIVER, introduced base URL helper getAmdRocmWindowsPackageUrl(), and updated AMD_ROCM_SDK_PACKAGES / AMD_TORCH_PACKAGES to generate package URLs targeting ROCm 7.2.1.
AMD Windows install error formatting
src/virtualEnvironment.ts
Imported new AMD constants, added AmdInstallComponent type and formatAmdWindowsInstallError() helper, and replaced prior generic install-failure Error messages in installAmdRocmSdk() and installAmdTorch() with the formatted AMD-specific error.

Poem

🐰 Hopping through URLs with a curious twitch,

ROCm footprints updated, neat and quick,
Constants added, messages now clear,
No devel egg—just a commenting ear,
I nibble the change and give a happy flick!

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: bumping Windows ROCm from version 7.2 to 7.2.1.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bl/bump-windows-rocm-7-2-1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@benceruleanlu
benceruleanlu marked this pull request as ready for review April 17, 2026 17:44
@benceruleanlu
benceruleanlu requested a review from a team as a code owner April 17, 2026 17:44
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Apr 17, 2026
@benceruleanlu

Copy link
Copy Markdown
Member Author

Manually testing today.

@dosubot dosubot Bot added the dependencies label Apr 17, 2026
@socket-security

socket-security Bot commented Apr 17, 2026

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm entities is 91.0% likely obfuscated

Confidence: 0.91

Location: Package overview

From: ?npm/entities@4.5.0

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/entities@4.5.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
src/constants.ts (1)

200-217: Optional: DRY the embedded 7.2.1 version in filenames.

AMD_ROCM_WINDOWS_RELEASE is defined as '7.2.1' but the same literal is then hardcoded inside every filename passed to getAmdRocmWindowsPackageUrl. Next bump (e.g. 7.2.2) will require editing the version in 8 places instead of 1, which is exactly the kind of drift this constant was introduced to prevent.

♻️ Proposed refactor
-export const AMD_ROCM_SDK_PACKAGES: string[] = [
-  getAmdRocmWindowsPackageUrl('rocm_sdk_core-7.2.1-py3-none-win_amd64.whl'),
-  getAmdRocmWindowsPackageUrl('rocm_sdk_devel-7.2.1-py3-none-win_amd64.whl'),
-  getAmdRocmWindowsPackageUrl('rocm_sdk_libraries_custom-7.2.1-py3-none-win_amd64.whl'),
-  getAmdRocmWindowsPackageUrl('rocm-7.2.1.tar.gz'),
-];
+const ROCM = AMD_ROCM_WINDOWS_RELEASE;
+export const AMD_ROCM_SDK_PACKAGES: string[] = [
+  getAmdRocmWindowsPackageUrl(`rocm_sdk_core-${ROCM}-py3-none-win_amd64.whl`),
+  getAmdRocmWindowsPackageUrl(`rocm_sdk_devel-${ROCM}-py3-none-win_amd64.whl`),
+  getAmdRocmWindowsPackageUrl(`rocm_sdk_libraries_custom-${ROCM}-py3-none-win_amd64.whl`),
+  getAmdRocmWindowsPackageUrl(`rocm-${ROCM}.tar.gz`),
+];

The same applies to the +rocm7.2.1 build tag in AMD_TORCH_PACKAGES.

Note that the assets .txt/.compiled files (which are uv-generated) must continue to match exactly — those are autogenerated and not affected by this refactor.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/constants.ts` around lines 200 - 217, The filenames hardcode the ROCm
version instead of reusing AMD_ROCM_WINDOWS_RELEASE; update
getAmdRocmWindowsPackageUrl usage so filenames are constructed from
AMD_ROCM_WINDOWS_RELEASE (e.g., use template fragments that insert
${AMD_ROCM_WINDOWS_RELEASE} for "rocm_sdk_core-<version>-..." and
"rocm-<version>.tar.gz") and change the AMD_TORCH_PACKAGES entries to include
the "+rocm${AMD_ROCM_WINDOWS_RELEASE}" build tag and the version in the wheel
names, keeping AMD_ROCM_WINDOWS_BASE_URL and getAmdRocmWindowsPackageUrl intact
and ensuring AMD_ROCM_SDK_PACKAGES and AMD_TORCH_PACKAGES are generated from
those templates.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@src/constants.ts`:
- Around line 200-217: The filenames hardcode the ROCm version instead of
reusing AMD_ROCM_WINDOWS_RELEASE; update getAmdRocmWindowsPackageUrl usage so
filenames are constructed from AMD_ROCM_WINDOWS_RELEASE (e.g., use template
fragments that insert ${AMD_ROCM_WINDOWS_RELEASE} for
"rocm_sdk_core-<version>-..." and "rocm-<version>.tar.gz") and change the
AMD_TORCH_PACKAGES entries to include the "+rocm${AMD_ROCM_WINDOWS_RELEASE}"
build tag and the version in the wheel names, keeping AMD_ROCM_WINDOWS_BASE_URL
and getAmdRocmWindowsPackageUrl intact and ensuring AMD_ROCM_SDK_PACKAGES and
AMD_TORCH_PACKAGES are generated from those templates.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 74b8da4a-723f-477a-b711-5a344f0f1263

📥 Commits

Reviewing files that changed from the base of the PR and between 08b23b2 and 61153a8.

📒 Files selected for processing (5)
  • assets/override_amd.txt
  • assets/requirements/amd_requirements.txt
  • assets/requirements/windows_amd.compiled
  • src/constants.ts
  • src/virtualEnvironment.ts

@benceruleanlu

Copy link
Copy Markdown
Member Author

Manual test succeeded

@Kosinkadink

Copy link
Copy Markdown
Member

LGTM, i recognize the rocm link from desktop 2.0

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Apr 20, 2026
@Kosinkadink

Copy link
Copy Markdown
Member

oh, im not in the comfy desktop devs group, RIP

@benceruleanlu
benceruleanlu merged commit 02c123b into main Apr 20, 2026
12 checks passed
@benceruleanlu
benceruleanlu deleted the bl/bump-windows-rocm-7-2-1 branch April 20, 2026 16:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants