examine: Strix Halo APU (gfx1151, Ryzen AI Max+ 395) misclassified as discrete GPU (has_apu=false)
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start with the rocm examine --json entry point and trace how GPU metadata, gfx_target, is_apu, and has_apu are derived; compare that path with the gfx-target lookup discussed in #393. Reproduce against the Strix Halo evidence in the issue, then verify that gfx1151 is classified as an APU without misclassifying discrete AMD GPUs.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
On an AMD Ryzen AI Max+ 395 (Strix Halo, gfx1151), rocm examine --json classifies the machine as having no APU ("has_apu": false, GPU entry "is_apu": false, "has_discrete_amd": true). This is a discrete-GPU-only misclassification of an iGPU-with-unified-memory APU, and it feeds wrong routing to consumers that branch on has_apu (APU-specific diagnostics and GTT/memory-tuning flows get skipped on exactly the machines where GTT tuning is the whole point).
Environment
- OS: Ubuntu 24.04, kernel
6.17.0-1032-oem(Ubuntu OEM) - APU: AMD Ryzen AI Max+ 395 w/ Radeon 8060S (Strix Halo, gfx1151)
- rocm-cli:
0.1.0 (main, 8788394)(nightly channel installer)
Observed
"gpus": [
{
"name": "Advanced Micro Devices, Inc. [AMD/ATI] Device",
"gfx_target": "",
"pci_id": "0000:66:00.0",
"is_apu": false,
"is_amd": true
}
],
"has_amd_gpu": true,
"has_apu": false,
"has_discrete_amd": true
Ground truth from other official tools on the same machine:
amd-smi static:MARKET_NAME: AMD Radeon 8060S Graphics,TARGET_GRAPHICS_VERSION: gfx1151,MEM_CARVEOUTpresent, VRAM8192 MB(DRAM-backed)rocminfo: agentName: gfx1151- Unified-memory evidence:
mem_info_vram_total=8589934592alongside a 96 GiB GTT (ttm.pages_limit=25165824) — classic UMA APU split
Expected
has_apu / is_apu should be true for Strix Halo and other Radeon-A APUs.
Suggested fix
PCI-topology heuristics alone miss APUs whose iGPU enumerates on a separate host bridge (Strix Halo exposes the GPU at 0000:66:00.0). Consider classifying by one of:
- gfx target set:
gfx1150/gfx1151/gfx1152are APU-only LLVM targets — a whitelist here is cheap and precise - UMA detection: VRAM carve-out is DRAM-backed (no separate HBM/GDDR instance) —
amd-smialready exposes this shape
Note: gfx_target being empty in examine output (see #393) is likely also feeding this — fixing the gfx-target lookup would give this classification the cheap precise signal.
Impact
Downstream consumers branching on has_apu misroute: e.g. the official rocm-doctor skill's APU flows and GTT-related diagnostics are skipped on this machine even though GTT tuning (currently 8 GiB carve-out + 96 GiB GTT) is this platform's headline feature.
- Ngôn ngữ chính
- Rust
- Star
- 49
- Fork
- 14
- Merge trung bình
- 3 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 174
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ROCm/rocm-cli
-
Deduplicate the `--yes`/non-interactive-terminal refusal guard (three near-identical copies)Đang mởenhancement ux-opportunities
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement ux-opportunities
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement ux-opportunities
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Move the remaining `scripts/` tooling to Rust (`cargo xtask` / e2e scenarios)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của ROCm/rocm-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mozilla-services/syncstorage-rs#2715 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
physicsdolphin/nv-uefi-unlocker#53 · 4 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/desktop-shell
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
yantrikos/yantrik-os#1012 ·
Maintainer thường phản hồi trong vòng 1 ngày