mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #81] [MERGED] Accept sm_80+ GPUs at runtime, matching the build guard and the README #2443
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2443
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
f36af4dAccept sm_80+ GPUs at runtime, matching the build guard and the README2428abfMerge 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 withcc_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:
@8k, 445 t/s@32kwith--prefill autoCMAKE_CUDA_ARCHITECTURES=86sm_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.