Skip to content

build: disable rocm-smi-lib build (deprecated) - #6852

Merged
gabrpham merged 4 commits into
mainfrom
users/marifamd/rocm-smi-disable
Aug 31, 2026
Merged

gabrpham merged 4 commits into
mainfrom
users/marifamd/rocm-smi-disable

Conversation

@marifamd

@marifamd marifamd commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

ROCm SMI is deprecated in favor of AMD SMI. Stop building it as part of the ROCm stack.

Technical Details

Subproject build (base/CMakeLists.txt):

  • Pass -DROCM_SMI_DISABLE=True to the rocm_smi_lib subproject so it configures to a no-op and installs nothing

Issue Tracking

JIRA ID: ROCM-966

Dependency

Requires the consumer-side gate in rocm-systems: ROCm/rocm-systems#9227. Merge that first, otherwise the flag is ignored.

@therock-pr-bot

therock-pr-bot Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass —
🔎 pre-commit ✅ Pass —
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —
🤖 therock-pr-bot ✅ Pass —

🎉 All checks passed! This PR is ready for review.

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

@therock-pr-bot therock-pr-bot Bot added the Not ready to Review PR has unresolved policy failures — reviews blocked label Jul 24, 2026
@therock-pr-bot

therock-pr-bot Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

🎉 All checks passed! This PR is ready for review.

@nunnikri

Copy link
Copy Markdown
Contributor

Might have to merge ROCm/rocm-systems#9227 first. The current ci is still generating rocm-smi

 dpkg -c amdrocm-base7.15_7.15.0~dev20260724-30117594320_amd64.deb | grep smi
drwxr-xr-x root/root         0 2026-07-24 13:43 ./opt/rocm/core-7.15/include/rocm_smi/
-rw-r--r-- root/root     62596 2026-07-24 13:42 ./opt/rocm/core-7.15/include/rocm_smi/kfd_ioctl.h
-rw-r--r-- root/root    191523 2026-07-24 13:42 ./opt/rocm/core-7.15/include/rocm_smi/rocm_smi.h
-rw-r--r-- root/root      2440 2026-07-24 13:42 ./opt/rocm/core-7.15/include/rocm_smi/rocm_smi64Config.h
drwxr-xr-x root/root         0 2026-07-24 13:43 ./opt/rocm/core-7.15/lib/cmake/rocm_smi/
-rw-r--r-- root/root      2837 2026-07-24 13:42 ./opt/rocm/core-7.15/lib/cmake/rocm_smi/rocm_smi-config-version.cmake
-rw-r--r-- root/root      2579 2026-07-24 13:42 ./opt/rocm/core-7.15/lib/cmake/rocm_smi/rocm_smi-config.cmake
-rw-r--r-- root/root      1242 2026-07-24 13:42 ./opt/rocm/core-7.15/lib/cmake/rocm_smi/rocm_smiTargets-release.cmake
-rw-r--r-- root/root      4141 2026-07-24 13:42 ./opt/rocm/core-7.15/lib/cmake/rocm_smi/rocm_smiTargets.cmake
-rw-r--r-- root/root   1630632 2026-07-24 13:43 ./opt/rocm/core-7.15/lib/librocm_smi64.so.1.0
drwxr-xr-x root/root         0 2026-07-24 13:43 ./opt/rocm/core-7.15/libexec/rocm_smi/
-rwxr-xr-x root/root    220756 2026-07-24 13:42 ./opt/rocm/core-7.15/libexec/rocm_smi/rocm_smi.py
-rwxr-xr-x root/root     24269 2026-07-24 13:42 ./opt/rocm/core-7.15/libexec/rocm_smi/rsmiBindings.py
-rwxr-xr-x root/root      2117 2026-07-24 13:42 ./opt/rocm/core-7.15/libexec/rocm_smi/rsmiBindingsInit.py
drwxr-xr-x root/root         0 2026-07-24 13:43 ./opt/rocm/core-7.15/share/doc/rocm-smi-lib/
-rw-r--r-- root/root      1080 2026-07-24 13:42 ./opt/rocm/core-7.15/share/doc/rocm-smi-lib/LICENSE.md
lrwxrwxrwx root/root         0 2026-07-24 15:03 ./opt/rocm/core-7.15/bin/rocm-smi -> ../libexec/rocm_smi/rocm_smi.py
lrwxrwxrwx root/root         0 2026-07-24 15:03 ./opt/rocm/core-7.15/lib/librocm_smi64.so -> librocm_smi64.so.1
lrwxrwxrwx root/root         0 2026-07-24 15:03 ./opt/rocm/core-7.15/lib/librocm_smi64.so.1 -> librocm_smi64.so.1.0

@marifamd
marifamd force-pushed the users/marifamd/rocm-smi-disable branch from c21723e to 086ab80 Compare July 30, 2026 02:54
@therock-pr-bot therock-pr-bot Bot removed the Not ready to Review PR has unresolved policy failures — reviews blocked label Jul 30, 2026

@nunnikri nunnikri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes looks fine. But would like to wait for rocm-systems bump and then ci completion to confirm the change is indeed helping

@marifamd
marifamd force-pushed the users/marifamd/rocm-smi-disable branch from 4b033b1 to 0bec2b8 Compare August 3, 2026 00:28
@gabrpham
gabrpham requested a review from a team as a code owner August 11, 2026 20:56
Comment thread rocm-libraries Resolved
@yalmusaf
yalmusaf force-pushed the users/marifamd/rocm-smi-disable branch from fcc621b to 671fdbd Compare August 11, 2026 21:12
@marifamd
marifamd force-pushed the users/marifamd/rocm-smi-disable branch from 671fdbd to 6290605 Compare August 17, 2026 18:11
@gabrpham
gabrpham requested a review from marbre as a code owner August 19, 2026 21:13
gulsumgudukbay added a commit to ROCm/rocm-jax that referenced this pull request Aug 25, 2026
Use amd-smi list in the hermetic docker workflow and drop the deprecated
rocm-smi-lib-dbgsym package (ROCm/TheRock#6852).
gulsumgudukbay added a commit to ROCm/xla that referenced this pull request Aug 26, 2026
Cherry-pick of #1113 (02298de) with SMI-only Bazel changes
on this release branch. Unblocks JAX wheel builds when librocm_smi64
is absent from the ROCm SDK (ROCm/TheRock#6852).
gulsumgudukbay added a commit to ROCm/xla that referenced this pull request Aug 26, 2026
Cherry-pick of #1113 (02298de) with SMI-only Bazel changes
on this release branch. Unblocks JAX wheel builds when librocm_smi64
is absent from the ROCm SDK (ROCm/TheRock#6852).
gulsumgudukbay added a commit to ROCm/xla that referenced this pull request Aug 26, 2026
Cherry-pick of #1113 (02298de) with SMI-only Bazel changes
on this release branch. Unblocks JAX wheel builds when librocm_smi64
is absent from the ROCm SDK (ROCm/TheRock#6852).
@gulsumgudukbay

Copy link
Copy Markdown
Contributor

https://github.com/ROCm/TheRock/actions/runs/33101375634 started this job for testing unblocking PRs for JAX/XLA in order to fix the JAX build on this PR.

mminutoli pushed a commit to ROCm/rocm-jax that referenced this pull request Aug 27, 2026
Use amd-smi list in the hermetic docker workflow and drop the deprecated
rocm-smi-lib-dbgsym package (ROCm/TheRock#6852).
marifamd and others added 3 commits August 27, 2026 17:26
Pass -DROCM_SMI_DISABLE=True to the rocm_smi_lib subproject so it configures to a no-op. rocm-smi-lib is deprecated in favor of AMD SMI.

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
ROCM_SMI_DISABLE gate caused rocm_smi64 and oam to not be defined
which in turn caused post_hook_rocm_smi_lib.cmake to return error.
This prevented base from building which cascades down into
rocprofiler_sdk failing and finally causing the compiler-runtime
stage to fail. Added TARGET guards in post_hook_rocm_smi_lib.cmake
to skip including those targets and unblock everything downstream.
@gabrpham
gabrpham force-pushed the users/marifamd/rocm-smi-disable branch from 9ac13cb to dabcf04 Compare August 27, 2026 22:26
mminutoli pushed a commit to ROCm/xla that referenced this pull request Aug 28, 2026
Cherry-pick of #1113 (02298de) with SMI-only Bazel changes
on this release branch. Unblocks JAX wheel builds when librocm_smi64
is absent from the ROCm SDK (ROCm/TheRock#6852).

(cherry picked from commit 45f7885)
@ScottTodd
ScottTodd self-requested a review August 28, 2026 21:37
@marifamd

Copy link
Copy Markdown
Contributor Author

@ScottTodd Doesn't look like the CI failures are related to the PR, can you please take a look?

@ScottTodd ScottTodd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes CI signal on this looks successful enough.

Comment thread base/CMakeLists.txt Resolved
@gabrpham
gabrpham merged commit 50dc726 into main Aug 31, 2026
176 of 180 checks passed
@gabrpham
gabrpham deleted the users/marifamd/rocm-smi-disable branch August 31, 2026 22:59
@github-project-automation github-project-automation Bot moved this from TODO to Done in TheRock Triage Aug 31, 2026
hugomano pushed a commit to zml/xla that referenced this pull request Sep 2, 2026
)

Cherry-pick of ROCm#1113 (02298de) with SMI-only Bazel changes
on this release branch. Unblocks JAX wheel builds when librocm_smi64
is absent from the ROCm SDK (ROCm/TheRock#6852).

(cherry picked from commit 45f7885)
LeoZhao-BJ added a commit to ROCm/rocm-systems that referenced this pull request Sep 3, 2026
## Motivation

remove code that is dependent on rocm-smi due to rocm-smi is not
available in artifactory.

## Technical Details

rocm-smi is not built out by TheRock
[#6852](ROCm/TheRock#6852)

## Issue Tracking

JIRA ID:  ROCM-30480

## Test Plan

Unit_hipP2pLinkTypeAndHopFunc

## Test Result

PASSED

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
systems-assistant Bot pushed a commit to ROCm/hip-tests that referenced this pull request Sep 3, 2026
 (#11093)

## Motivation

remove code that is dependent on rocm-smi due to rocm-smi is not
available in artifactory.

## Technical Details

rocm-smi is not built out by TheRock
[#6852](ROCm/TheRock#6852)

## Issue Tracking

JIRA ID:  ROCM-30480

## Test Plan

Unit_hipP2pLinkTypeAndHopFunc

## Test Result

PASSED

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.
[rocm-systems] ROCm/rocm-systems#11093 (commit 8a341d0)
hugomano pushed a commit to zml/xla that referenced this pull request Sep 7, 2026
)

Cherry-pick of ROCm#1113 (02298de) with SMI-only Bazel changes
on this release branch. Unblocks JAX wheel builds when librocm_smi64
is absent from the ROCm SDK (ROCm/TheRock#6852).

(cherry picked from commit 45f7885)
@marifamd marifamd mentioned this pull request Oct 9, 2026
1 task done
marifamd added a commit that referenced this pull request Oct 21, 2026
## Motivation

ROCm SMI now ships with deprecation notices (ROCm/rocm-systems#13131),
so build it again instead of skipping it. Partially reverts #6852.

This is intended to add rocm-smi back in for 10.2, but only for external
users who didn't get the deprecation notice. This is meant to be a final
build with a warning in the output for users to move over to amd-smi.

## Technical Details

| File | Change |
|------|--------|
| `base/CMakeLists.txt` | Drop `-DROCM_SMI_DISABLE=True` |
| `base/post_hook_rocm_smi_lib.cmake` | Restore libdrm install-interface
include dirs for `rocm_smi64` / `oam` |
| `rocm-sdk-core` `setup.py`, `_cli.py` | Restore the `rocm-smi` console
script |
| `rocm_sdk/_dist_info.py` | Restore the `rocm_smi64` core library entry
|
| `rocm_sdk/tests/core_test.py` | Restore the `rocm-smi` console-script
test |
| `amdrocm-core` / `amdrocm-developer-tools` postinst + prerm | Add
`rocm-smi` next to `amd-smi` in the update-alternatives lists (dropped
by #7672 while rocm-smi-lib was disabled) |

Not restored: `rocm_smi64` in the PyTorch wheel preload list
(`external-builds/pytorch/build_prod_wheels.py`).

## Test Plan

- CI build + `rocm-sdk` core tests
- `python3 -m pytest build_tools/tests/sdk_targets_test.py`
- Render the 4 postinst/prerm templates (deb), `bash -n`, run against a
fake prefix with a stub `update-alternatives`

## Test Result

- `sdk_targets_test.py`: 5 passed
- `_dist_info` registers `rocm_smi64` in `core`
- All 4 scripts pass `bash -n`; postinst installs and prerm removes
`/usr/bin/rocm-smi` alongside `amd-smi`

## Issue Tracking

JIRA ID: ROCM-21935

---------

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Co-authored-by: gabrpham <Gabriel.Pham@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants