Skip to content

Add APU unified memory (GTT) support for Strix Halo / gfx1151#7

Open
DasPauluteli wants to merge 3 commits intoiDAPPA:mainfrom
DasPauluteli:main
Open

Add APU unified memory (GTT) support for Strix Halo / gfx1151#7
DasPauluteli wants to merge 3 commits intoiDAPPA:mainfrom
DasPauluteli:main

Conversation

@DasPauluteli
Copy link

Summary

  • Adds real-time tracking of the GTT (Graphics Translation Table) pool — the system RAM dynamically allocated to the GPU via AMD's TTM kernel subsystem
  • Automatically detects APUs (Strix Halo, Phoenix, Hawk Point, Rembrandt, etc.) by device name or size heuristic (GTT ≥ 4× VRAM and VRAM < 8 GB)
  • Shows a purple "Unified RAM (GTT)" progress bar in the UI when an APU is detected
  • Relabels the VRAM bar as "VRAM (reserved pool)" on APUs to avoid the misleading impression that VRAM is the total available GPU memory
  • Adds is_apu, gtt_used, gtt_total, gtt_used_percent, and device_name to the WebSocket payload
  • Updates README with an APU/unified memory section explaining the GTT/TTM architecture

Test plan

  • Verify monitor still works correctly on a discrete AMD GPU (VRAM bar shown, GTT bar hidden)
  • Verify GTT bar appears and VRAM is relabeled on an APU (e.g. Strix Halo / gfx1151)
  • Check rocm-smi --showmeminfo gtt --json returns expected keys on your system
  • Confirm APU detection heuristic triggers correctly (check is_apu in WebSocket payload)

🤖 Generated with Claude Code

- Track GTT pool (system RAM mapped for GPU use via AMD TTM) alongside VRAM
- Auto-detect APUs by device name or size heuristic (GTT >= 4x VRAM < 8GB)
- Show purple "Unified RAM (GTT)" bar in UI when APU is detected
- Relabel VRAM bar as "reserved pool" on APUs to avoid misleading reads
- Include is_apu, gtt_used/total/percent, device_name in WebSocket payload
- Update README with APU/unified memory section and Strix Halo notes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@DasPauluteli
Copy link
Author

Preview:

image

@DasPauluteli
Copy link
Author

I will continue the tests using an AMD Radeon RX 9060 XT (gfx1200) tomorrow.

@DasPauluteli DasPauluteli marked this pull request as draft March 13, 2026 20:37
@DasPauluteli
Copy link
Author

Tested today on the RX 9060 XT (gfx1200) with the latest TheRock PyTorch nightly builds and PyTorch nightly builds. Both the discrete GPU path (VRAM bar, no GTT bar) and APU path work correctly.

Test plan

  • Verify monitor still works correctly on a discrete AMD GPU (VRAM bar shown, GTT bar hidden)
  • Verify GTT bar appears and VRAM is relabeled on an APU (e.g. Strix Halo / gfx1151)
  • Check rocm-smi --showmeminfo gtt --json returns expected keys on your system
  • Confirm APU detection heuristic triggers correctly (check is_apu in WebSocket payload)

All test plan items pass. Marking as ready to merge

@DasPauluteli DasPauluteli marked this pull request as ready for review March 14, 2026 12:33
Added a screenshot for AMD APU monitoring. Currently doesn't load due to missing image in iDAPPA's repo. Will properly load once merged.
@DasPauluteli
Copy link
Author

I have the preview screenshot to the repo and README.md.

Preview:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant