[PR #1298] [CLOSED] hip: the gfx110x fp16 (rocWMMA) qsa-select scorer arm (STRATA_SELECT_WMMA) #3369

Closed
opened 2026-11-07 14:41:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1298
Author: @xyzzing
Created: 10/7/2026
Status: ❌ Closed

Base: main ← Head: refile-select-fp16


📝 Commits (1)

  • 78c402d qsa select: the gfx110x fp16 (rocWMMA) scorer arm re-landed on the 0.1.40 line

📊 Changes

4 files changed (+531 additions, -1 deletions)

View changed files

📝 CMakeLists.txt (+11 -0)
📝 include/strata/kernels/qsa_select.hpp (+9 -0)
📝 src/kernels/cuda/qsa_select.cu (+163 -1)
➕ src/kernels/qsa_select_wmma_parity.cpp (+348 -0)

📄 Description

Per the offer in the #944 thread: the gfx110x fp16 (rocWMMA) qsa-select scorer arm, as the gfx110x branch of the existing STRATA_SELECT_WMMA opt-in, alongside the bf16 hand-rolled kernel that 0.1.40 ships.

What it is. One commit: the fp16 rocWMMA scorer kernel for gfx110x (rocwmma.hpp, 16x16x16, fp16 operands / fp32 accumulate) behind the same STRATA_SELECT_WMMA env, plus its parity harness src/kernels/qsa_select_wmma_parity.cpp (fp64 oracle + the bitwise warp host model, pre-declared bounds, negative controls). The bf16 kernel (gfx12 + the other gfx11 layouts) and the warp kernel stay the fallbacks everywhere else — the default path (env absent) is byte-identical to main; on cards without the rocWMMA headers the arm compiles out and the host entry refuses.

Why fp16 here. Paired A/B on gfx1100 (2026-10-06, same engine build, arms differing only in the select kernel): the fp16 arm's qsa-select phase ran 1.64x faster than the shipped bf16 arm at 128K (measured on the fork's 0.1.40 refresh line; the fork carries this exact kernel in production). The re-land on this base measured parity-neutral overall vs our previous production reads (x1.0009 on the canonical stream tail).

Gates on this base. Full HIP build green; qsa_select_wmma_parity all cases PASS (worst fp64-oracle bound utilisation 11.0%, one-hot/coordinate-coded adversarial case bitwise vs its host model, 0 differing selection ids, negative control fails as designed).

Prepared with an AI engineering agent (GLM-5.3 / Z.ai) under human direction; every number is from our own recorded runs.


🔄 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/1298 **Author:** [@xyzzing](https://github.com/xyzzing) **Created:** 10/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `refile-select-fp16` --- ### 📝 Commits (1) - [`78c402d`](https://github.com/Niko1221/Strata/commit/78c402d4fe45a0a6dc7c3dfbeb7c40b1d9e2f2f5) qsa select: the gfx110x fp16 (rocWMMA) scorer arm re-landed on the 0.1.40 line ### 📊 Changes **4 files changed** (+531 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+11 -0) 📝 `include/strata/kernels/qsa_select.hpp` (+9 -0) 📝 `src/kernels/cuda/qsa_select.cu` (+163 -1) ➕ `src/kernels/qsa_select_wmma_parity.cpp` (+348 -0) </details> ### 📄 Description Per the offer in the #944 thread: the gfx110x **fp16 (rocWMMA)** qsa-select scorer arm, as the gfx110x branch of the existing `STRATA_SELECT_WMMA` opt-in, alongside the bf16 hand-rolled kernel that 0.1.40 ships. **What it is.** One commit: the fp16 rocWMMA scorer kernel for gfx110x (`rocwmma.hpp`, 16x16x16, fp16 operands / fp32 accumulate) behind the same `STRATA_SELECT_WMMA` env, plus its parity harness `src/kernels/qsa_select_wmma_parity.cpp` (fp64 oracle + the bitwise warp host model, pre-declared bounds, negative controls). The bf16 kernel (gfx12 + the other gfx11 layouts) and the warp kernel stay the fallbacks everywhere else — the default path (env absent) is byte-identical to main; on cards without the rocWMMA headers the arm compiles out and the host entry refuses. **Why fp16 here.** Paired A/B on gfx1100 (2026-10-06, same engine build, arms differing only in the select kernel): the fp16 arm's qsa-select phase ran **1.64x faster** than the shipped bf16 arm at 128K (measured on the fork's 0.1.40 refresh line; the fork carries this exact kernel in production). The re-land on this base measured parity-neutral overall vs our previous production reads (x1.0009 on the canonical stream tail). **Gates on this base.** Full HIP build green; `qsa_select_wmma_parity` all cases PASS (worst fp64-oracle bound utilisation 11.0%, one-hot/coordinate-coded adversarial case bitwise vs its host model, 0 differing selection ids, negative control fails as designed). *Prepared with an AI engineering agent (GLM-5.3 / Z.ai) under human direction; every number is from our own recorded runs.* --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:41:00 +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#3369
No description provided.