[PR #1909] [CLOSED] kernels: process all groups in fused GU and LDS down launches #3750

Closed
opened 2026-11-07 15:30:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1909
Author: @W1nge
Created: 10/11/2026
Status: ❌ Closed

Base: main ← Head: codex/grouped-stride-fix


📝 Commits (1)

  • 3365d2c kernels: stride over all groups in the fused GU and LDS down paths

📊 Changes

2 files changed (+148 additions, -103 deletions)

View changed files

📝 src/kernels/cuda/iq_kernels.cu (+107 -103)
📝 src/kernels/native_grouped_parity.cpp (+41 -0)

📄 Description

Closes #1908.

Summary

When expert groups outnumber launch block rows, mode 8's fused gate/up and modes 7/8's LDS down kernels skip later groups. Stride the group index by gridDim.y in both kernels.

What changed

Add a model-free regression to native_grouped_parity: 11 groups, varied entry counts, scattered outputs, nonzero entry offsets, and block-row counts 1/3/8. Check mode 7's down pass and mode 8's complete pass across five gate/up formats and two down formats. No launch defaults or arithmetic changes.

Validation

MSVC/CUDA 12.4 build for sm60;sm75. On RTX 2080 Ti and P100, all 120 new comparisons per GPU fail before the fix and pass afterward; existing default-path checks remain bitwise equal. Targeted CTest and full CUDA integration build pass.

Draft pending the affected gfx906 HIP build; no AMD runtime result claimed.


🔄 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/1909 **Author:** [@W1nge](https://github.com/W1nge) **Created:** 10/11/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/grouped-stride-fix` --- ### 📝 Commits (1) - [`3365d2c`](https://github.com/Niko1221/Strata/commit/3365d2c43080b847ff4bd4fe2cbe6809f7595446) kernels: stride over all groups in the fused GU and LDS down paths ### 📊 Changes **2 files changed** (+148 additions, -103 deletions) <details> <summary>View changed files</summary> 📝 `src/kernels/cuda/iq_kernels.cu` (+107 -103) 📝 `src/kernels/native_grouped_parity.cpp` (+41 -0) </details> ### 📄 Description Closes #1908. ## Summary When expert groups outnumber launch block rows, mode 8's fused gate/up and modes 7/8's LDS down kernels skip later groups. Stride the group index by `gridDim.y` in both kernels. ## What changed Add a model-free regression to `native_grouped_parity`: 11 groups, varied entry counts, scattered outputs, nonzero entry offsets, and block-row counts 1/3/8. Check mode 7's down pass and mode 8's complete pass across five gate/up formats and two down formats. No launch defaults or arithmetic changes. ## Validation MSVC/CUDA 12.4 build for `sm60;sm75`. On RTX 2080 Ti and P100, all 120 new comparisons per GPU fail before the fix and pass afterward; existing default-path checks remain bitwise equal. Targeted CTest and full CUDA integration build pass. Draft pending the affected gfx906 HIP build; no AMD runtime result claimed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:30:30 +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#3750
No description provided.