mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4023] [Engine] The hand build in docs/INSTALL.md fails on RTX 50, and without the option it builds for sm_75 #1734
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#1734
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?
Originally created by @pschaub on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4023
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
I wanted to build the engine myself on Windows and followed "Only compile, without the installer" in docs/INSTALL.md:
github.com/Niko1221/Strata@7dd5cf18e6/docs/INSTALL.md (L187-L190)Configuring works. The second command,
cmake --build, stops insrc/prefill/mmq_nvfp4_w4a4.cuon my RTX 5090:So I tried it without
-DCMAKE_CUDA_ARCHITECTURES, since CMakeLists.txt has 120 as its default. That build goes through, but CMake printsStrata: CUDA enabled, arch 75and build.ninja only hascompute_75. The engine started on the 5090 without a warning, and then requests failed withprefill copy_i32: unspecified launch failure. A build for 120 runs fine on the same PC with the same settings.What I found: the 120 default comes after
enable_language(CUDA). Since CMake 3.18 (policy CMP0104),enable_language(CUDA)already fills an unsetCMAKE_CUDA_ARCHITECTURESwith the compiler's default, which is 75 for CUDA 13, so theif(NOT DEFINED ...)never fires:github.com/Niko1221/Strata@7dd5cf18e6/CMakeLists.txt (L177-L184)This doesn't depend on the card. I get the same
arch 75on Linux with no GPU at all (CMake 3.28, nvcc 13.4). For an RTX 20 card 75 happens to be right. RTX 30, 40 and 50 cards can only run that build through the driver's JIT, and I could only try that on my 5090. The release packages are not affected, because their build script sets the architectures explicitly:github.com/Niko1221/Strata@7dd5cf18e6/packaging/build_cuda_linux.sh (L19)The
nativeerror comes from the W4A4 unit. It turns 12x into 12xa, but only plain numbers, sonativestaysnativeand the unit is built for sm_120 without thea, where ptxas refuses the FP4 MMA:github.com/Niko1221/Strata@7dd5cf18e6/CMakeLists.txt (L1881-L1889)Only cards with compute capability 12.x, like RTX 50, hit this. On RTX 20, 30 and 40
nativegives 75, 86 or 89, and the FP4 code in that unit is only compiled from 12.0 on (BLACKWELL_MMA_AVAILABLEin ggml's common.cuh).The fix looks small and I have it ready as a PR: set the 120 default before
enable_language(CUDA)(unlessCUDAARCHSis set), resolvenativebefore the 12xa rewrite, and let the command in docs/INSTALL.md name the card like the release build does (120for RTX 50,75,86or89for RTX 20, 30 or 40). On my 5090 no option then givesarch 120and runs fine, andnativebuilds. One side effect: without the option an RTX 20, 30 or 40 then gets 120 too, so the engine should stop at start with its existing "this engine has no code for ... rebuild it for this card" message (src/core/device.cu). I couldn't try that on such a card.Smallest steps or command that reproduce it
On an RTX 50 this stops in
mmq_nvfp4_w4a4.cu. Without the option:prints
Strata: CUDA enabled, arch 75(no GPU needed for this part).Reproduction status
Reproduced locally
Strata version
main
7dd5cf18(0.2.4.2)Graphics card, memory and system
My setup: main
7dd5cf18, RTX 5090 32 GB, driver 621.01, 64 GB RAM, Windows 11, MSVC 19.44, CUDA 13.4, CMake 3.31, NinjaModel, size and settings
No response
Logs
No response
@Niko1221 commented on GitHub (Oct 27, 2026):
Thank you for the report, your diagnosis was right. It is fixed in 0.2.7 by the change from #4029: a build with no -DCMAKE_CUDA_ARCHITECTURES now targets sm_120, and
nativebuilds the FP4 unit for the card's real architecture. The release packages were never affected; this was the hand build. We checked the configure output (no option, CUDAARCHS set, an explicit architecture, native) and a native build on an sm_86 machine, but we have no RTX 50 card for the native build. Could you build 0.2.7 the way docs/INSTALL.md says and tell us whether it configures and starts? We close this issue when you confirm.Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7
@pschaub commented on GitHub (Oct 27, 2026):
Thanks for picking this up in 0.2.7. I built it from source on my RTX 5090 with the two commands from docs/SOURCE_INSTALL.md
Works here, so from my side this can be closed.