[PR #659] [CLOSED] Fix WDDM host pinning for gfx1031 native inference #2747

Closed
opened 2026-11-04 02:02:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/659
Author: @AxeSl
Created: 10/3/2026
Status: ❌ Closed

Base: main ← Head: axesl-fix-strata-gfx1031


📝 Commits (1)

  • e9630cd local: gfx1031 unvalidated-whitelist + Q5_1 PLE support (AD-4.27 run)

📊 Changes

6 files changed (+47 additions, -14 deletions)

View changed files

📝 cmake/hip_backend.cmake (+1 -1)
📝 docs/AMD_HIP.md (+8 -0)
📝 include/strata/artifact/dequant.hpp (+18 -0)
📝 include/strata/core/pinned.hpp (+3 -3)
📝 src/core/pinned.cu (+7 -5)
📝 src/kernels/ngram.cpp (+10 -5)

📄 Description

Summary

  • Include commit e9630cd with gfx1031 support and Q5_1 PLE handling.
  • Cap fallback sliced cudaHostRegister on native Windows using the GPU's WDDM shared-memory budget when STRATA_ARENA_PIN_GIB is unset.
  • Preserve explicit numeric caps, auto, and 0 as the uncapped legacy override.
  • Document the WDDM pinning behavior and configuration controls.

Root cause

When whole-arena registration failed on Windows, the fallback registered layer-sized slices until the driver refused them. On the reported RX 6700M run this produced 46 registered slices / approximately 44 GiB while WDDM reported 9426 MiB of 10224 MiB budget in use. That consumed the shared-memory budget needed by later VRAM allocations and verify work, causing paging and stalls. The remaining arena is still kept resident through the working-set lock, but only the budget-safe prefix is CUDA-registered.

Validation

  • git diff --check passed and the worktree is clean.
  • HIP configuration with CMAKE_HIP_ARCHITECTURES=gfx1031 reaches the gfx1031 architecture warning and HIP compiler detection.
  • Full HIP build was unavailable in this checkout because .rocm-win is absent and the Visual Studio generator does not support HIP.
  • IQ pack test was unavailable because the llama.cpp gguf-py dependency is not present.
  • No commands accessed or modified C:\\test12\\Strata.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/659 **Author:** [@AxeSl](https://github.com/AxeSl) **Created:** 10/3/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `axesl-fix-strata-gfx1031` --- ### 📝 Commits (1) - [`e9630cd`](https://github.com/Niko1221/Strata/commit/e9630cd5ad88f1238a2634f72de56f0e46aeb1cb) local: gfx1031 unvalidated-whitelist + Q5_1 PLE support (AD-4.27 run) ### 📊 Changes **6 files changed** (+47 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `cmake/hip_backend.cmake` (+1 -1) 📝 `docs/AMD_HIP.md` (+8 -0) 📝 `include/strata/artifact/dequant.hpp` (+18 -0) 📝 `include/strata/core/pinned.hpp` (+3 -3) 📝 `src/core/pinned.cu` (+7 -5) 📝 `src/kernels/ngram.cpp` (+10 -5) </details> ### 📄 Description ## Summary - Include commit `e9630cd` with gfx1031 support and Q5_1 PLE handling. - Cap fallback sliced `cudaHostRegister` on native Windows using the GPU's WDDM shared-memory budget when `STRATA_ARENA_PIN_GIB` is unset. - Preserve explicit numeric caps, `auto`, and `0` as the uncapped legacy override. - Document the WDDM pinning behavior and configuration controls. ## Root cause When whole-arena registration failed on Windows, the fallback registered layer-sized slices until the driver refused them. On the reported RX 6700M run this produced 46 registered slices / approximately 44 GiB while WDDM reported 9426 MiB of 10224 MiB budget in use. That consumed the shared-memory budget needed by later VRAM allocations and verify work, causing paging and stalls. The remaining arena is still kept resident through the working-set lock, but only the budget-safe prefix is CUDA-registered. ## Validation - `git diff --check` passed and the worktree is clean. - HIP configuration with `CMAKE_HIP_ARCHITECTURES=gfx1031` reaches the gfx1031 architecture warning and HIP compiler detection. - Full HIP build was unavailable in this checkout because `.rocm-win` is absent and the Visual Studio generator does not support HIP. - IQ pack test was unavailable because the llama.cpp `gguf-py` dependency is not present. - No commands accessed or modified `C:\\test12\\Strata`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:02:49 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2747
No description provided.