## 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>
Cherry pick of 37ca1c5
JIRA ID: AIRDEL-111
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
base/CMakeLists.txt-DROCM_SMI_DISABLE=Truerocm-sdk-coresetup.py,_cli.pyrocm-smiconsole scriptrocm_sdk/_dist_info.pyrocm_smi64core library entryrocm_sdk/tests/core_test.pyrocm-smiconsole-script testamdrocm-core/amdrocm-developer-toolspostinst + prermrocm-sminext toamd-smiin the update-alternatives lists (dropped by #7672 while rocm-smi-lib was disabled)Not restored:
rocm_smi64in the PyTorch wheel preload list (external-builds/pytorch/build_prod_wheels.py).Test Plan
rocm-sdkcore testspython3 -m pytest build_tools/tests/sdk_targets_test.pybash -n, run against a fake prefix with a stubupdate-alternativesTest Result
sdk_targets_test.py: 5 passed_dist_inforegistersrocm_smi64incorebash -n; postinst installs and prerm removes/usr/bin/rocm-smialongsideamd-smiIssue Tracking
JIRA ID: ROCM-21935