[PR #81] [MERGED] Accept sm_80+ GPUs at runtime, matching the build guard and the README #2443

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/81
Author: @mikicvi
Created: 9/28/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @Niko1221

Base: main ← Head: sm80-runtime-check


📝 Commits (2)

  • f36af4d Accept sm_80+ GPUs at runtime, matching the build guard and the README
  • 2428abf Merge branch 'main' into sm80-runtime-check

📊 Changes

2 files changed (+10 additions, -9 deletions)

View changed files

📝 CMakeLists.txt (+3 -3)
📝 src/core/device.cu (+7 -6)

📄 Description

The CMake arch guard already lets RTX 30 (sm_86) / 40 (sm_89) build — its own comment says "the kernels need sm_80 or newer (tf32 mma in the attention scorer, bf16 math), so RTX 30 (86) and RTX 40 (89) build too" — and the README lists RTX 30/40/50 as supported. But device_info() still refused anything with cc_major != 12, so a working Ampere/Ada build died at startup with "Strata targets sm_120 (RTX 5000 series / Blackwell) only".

This relaxes the runtime check to the kernels' real floor (compute capability 8.0), aligns the stale "120-only" header comment in CMakeLists.txt with the guard below it, and fixes the "no CUDA device" message that also claimed sm_120-only. No behavior change on Blackwell.

Verified on Ampere, CUDA 12.0 / gcc-13, engine 0.1.20, GSQ-RCO IQ2_XS and IQ3_XXS — now serving daily on this machine:

  • RTX A2000 12GB + RTX 3080 10GB (both sm_86), single-GPU on either card
  • Decode 21-24 t/s flat from 1k to 128k context (13-layer KV + streaming), 29.6 t/s on code generation at 81% draft acceptance
  • Prefill 375 t/s @8k, 445 t/s @32k with --prefill auto
  • Quality: 8/8 multi-needle retrieval at 113k context on both quants (real shuffled source code as filler)
  • This exact branch compiled from a clean checkout: CUDA 12.0, CMAKE_CUDA_ARCHITECTURES=86

sm_89 is covered by the same reasoning but not measured here; no Blackwell-specific intrinsics are used on these paths, which is what the existing build guard already asserts.


🔄 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/81 **Author:** [@mikicvi](https://github.com/mikicvi) **Created:** 9/28/2026 **Status:** ✅ Merged **Merged:** 9/29/2026 **Merged by:** [@Niko1221](https://github.com/Niko1221) **Base:** `main` ← **Head:** `sm80-runtime-check` --- ### 📝 Commits (2) - [`f36af4d`](https://github.com/Niko1221/Strata/commit/f36af4d96bf1001e97eb1ef2e585fb01d7c25218) Accept sm_80+ GPUs at runtime, matching the build guard and the README - [`2428abf`](https://github.com/Niko1221/Strata/commit/2428abf51392be0c6ce78f7cd941ee4bf4da6bf5) Merge branch 'main' into sm80-runtime-check ### 📊 Changes **2 files changed** (+10 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+3 -3) 📝 `src/core/device.cu` (+7 -6) </details> ### 📄 Description The CMake arch guard already lets RTX 30 (sm_86) / 40 (sm_89) build — its own comment says "the kernels need sm_80 or newer (tf32 mma in the attention scorer, bf16 math), so RTX 30 (86) and RTX 40 (89) build too" — and the README lists RTX 30/40/50 as supported. But `device_info()` still refused anything with `cc_major != 12`, so a working Ampere/Ada build died at startup with "Strata targets sm_120 (RTX 5000 series / Blackwell) only". This relaxes the runtime check to the kernels' real floor (compute capability 8.0), aligns the stale "120-only" header comment in CMakeLists.txt with the guard below it, and fixes the "no CUDA device" message that also claimed sm_120-only. No behavior change on Blackwell. Verified on Ampere, CUDA 12.0 / gcc-13, engine 0.1.20, GSQ-RCO IQ2_XS and IQ3_XXS — now serving daily on this machine: - RTX A2000 12GB + RTX 3080 10GB (both sm_86), single-GPU on either card - Decode 21-24 t/s flat from 1k to 128k context (13-layer KV + streaming), 29.6 t/s on code generation at 81% draft acceptance - Prefill 375 t/s `@8k`, 445 t/s `@32k` with `--prefill auto` - Quality: 8/8 multi-needle retrieval at 113k context on both quants (real shuffled source code as filler) - This exact branch compiled from a clean checkout: CUDA 12.0, `CMAKE_CUDA_ARCHITECTURES=86` sm_89 is covered by the same reasoning but not measured here; no Blackwell-specific intrinsics are used on these paths, which is what the existing build guard already asserts. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:00:09 +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#2443
No description provided.