mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #101] [CLOSED] build: allow sm_70 (Volta) builds — the only sm_80+ dependency is unreferenced #2457
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#2457
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/101
Author: @eightman999
Created: 9/29/2026
Status: ❌ Closed
Base:
main← Head:volta-sm70-support📝 Commits (1)
1877d07cuda: allow sm_70 (Volta) builds by excluding the unreferenced sm_80+ QSA scorer📊 Changes
1 file changed (+10 additions, -3 deletions)
View changed files
📝
CMakeLists.txt(+10 -3)📄 Description
English
What: relax the
CMAKE_CUDA_ARCHITECTURESfloor from sm_80 to sm_70, and excludesrc/kernels/cuda/native_qsa_score.cuwhen building for sm_70.Why it works:
native_qsa_score.cuis the only TU using sm_75+/sm_80+ instructions (ldmatrix,mma.syncTF32). It failsptxason sm_70 (Feature 'ldmatrix' requires .target sm_75 or higher), but nothing in the runtime references its symbols — noset_enabledpath, no call sites. Every other kernel uses portable intrinsics (custom BF16 bit conversion, FP16 atomics) and compiles clean for sm_70.Verified on: Tesla V100-PCIE-32GB (sm_70), CUDA 12.x, Linux —
Qwen3.8-Flash-NextQ2_0 loads, generates correct output, and sustains ~47-52 tok/s decode at 18K context with ~20K resident experts (26 GiB expert cache). Correctness sanity-checked (arithmetic + reasoning output).Caveat for maintainers: sm_70 is only buildable — this PR does not claim Volta as a supported tier. If
native_qsa_score.cugains a live call path later, theSTRATA_SM70exclusion will need a fallback or the file will need#if __CUDA_ARCH__ >= 800guards instead.日本語
内容:
CMAKE_CUDA_ARCHITECTURESの下限を sm_80 から sm_70 に緩和し、sm_70 ビルド時のみsrc/kernels/cuda/native_qsa_score.cuをソースから除外します。動く理由: sm_75+/sm_80+ 専用命令(
ldmatrix、mma.syncTF32)を使うのはnative_qsa_score.cuのみです。このファイルは sm_70 のptxasで確実に失敗しますが、実行時に参照するコードパスが存在しないデッドコードです。他のカーネルはポータブルな実装(独自 BF16 ビット変換・FP16 atomic など)で、sm_70 でクリーンにコンパイルされます。検証環境: Tesla V100-PCIE-32GB(sm_70)、CUDA 12.x、Linux。
Qwen3.8-Flash-NextQ2_0 がロード・正常生成し、18K コンテキストで decode ~47-52 tok/s を維持(エキスパート ~20K 個・26 GiB 常駐)。算術+推論出力で正答を確認済み。注意点: この PR は「sm_70 でビルド可能」を主張するもので、Volta の正式サポートを提案するものではありません。将来
native_qsa_score.cuに生きた呼び出し経路ができた場合、STRATA_SM70側にフォールバック実装か#if __CUDA_ARCH__ >= 800ガードが必要になります。🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.