mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4503] [Other] v0.2.7 source build with CUDA 12.0 fails: "Formal parameter space overflowed" in src/prefill/moe_fused_iq.cu (the WideBatch kernels) #2021
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#2021
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 @rodi4eg on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4503
Area
[Other] (build / installation)
Desktop app, Terminal or source?
Source (a plain cmake build of v0.2.7 on Linux)
What happened
A source build of v0.2.7 stops at
[127/173]—FAILED: [code=1] CMakeFiles/strata_mmq.dir/src/prefill/moe_fused_iq.cu.o— when the CUDA toolkit is this box's apt-installednvidia-cuda-toolkit(nvcc 12.0):27 such lines in total: 18 at
src/prefill/moe_fused_iq.cu:565(native_kernel's declaration line) and 9 at:908(native_ws_kernel(const WideBatch b, …)); all 27 mangled signatures mentionWideBatch. The nvcc line is the project's own, with--generate-code=arch=compute_89,code=[compute_89,sm_89].The same source tree compiled by a CUDA 12.9 toolkit (nvcc 12.9.86) installed side by side gives RC 0 for that file, so it is the toolkit's 4096-byte formals limit, not a change on my side.
src/prefill/moe_fused_iq.cuis part of targetstrata_mmq(CMakeLists.txt:2070).Expected instead: either the build works with 12.0, or the failure says "this toolkit is too old, install CUDA 12.9" before ~25 minutes of compiling are spent.
Smallest steps or command that reproduce it
Then the same configure pointed at a CUDA 12.9 toolkit installed side by side (
-DCMAKE_CUDA_COMPILER=<that toolkit's nvcc>, no system package touched) builds clean.Reproduction status
Reproduced locally — the build failed as pasted above (kept in my own build log of that run), and the same translation unit compiles with RC 0 under nvcc 12.9.86 in the same tree, on the same card. I did not bisect which 12.x first works: 12.0 fails, 12.9 compiles it.
Strata version
Strata 0.2.7 · engine 0.1.52 (source build from the repo's
v0.2.7tag). My tree adds 9 files of my own work on top of that tag; none of them is in targetstrata_mmqand none touchessrc/prefill/— the failing translation unit is upstream's, unmodified by me.Graphics card, memory and system
RTX 4070 (compute capability 8.9) 12 GB · 31 GB RAM · Ubuntu 24.04.4 LTS, driver 580.126.09. Toolkit:
nvidia-cuda-toolkitpackage12.0.140~12.0.1-4build4, i.e./usr/bin/nvcc=Cuda compilation tools, release 12.0, V12.0.140. That version is the apt candidate on this box (noble/multiverse), so anyone who follows the source instructions afterapt install nvidia-cuda-toolkitwith no other CUDA install lands on it.Model, size and settings
Not relevant: nothing loads, the failure is at compile time.
Logs
All 27 error lines are identical apart from the mangled function name; one of each kind is quoted above. No keys or private text in them. I can paste the whole failing nvcc command line (it is the project's own flags plus ~900 characters of
-Ddefines, nothing local) if wanted — it is kept in my own build log of that run rather than here for length.What I would ask for
setup.py:5531already encodes a toolkit floor for the CUDA-12 engine (need12 = (12, 8) if max(archs) >= 120 else (12, 0)) and fails with an install hint atsetup.py:5536-5541. For a modern card the floor used atsetup.py:5543is(12, 0), so a CUDA 12.0 toolkit passes setup, printsbuild tools present (CUDA 12.0)and then dies 80 % through the build. Raising that floor for source builds — to the 12.9 upstream documents (Dockerfile:8; the default is CUDA 13 atDockerfile:20) — reuses machinery that is already there. Afind_package(CUDAToolkit)check in CMake with the same message would cover people who configure directly, as I did.docs/SOURCE_INSTALL.mdstates no CUDA toolkit version requirement for an NVIDIA build (only the Visual Studio constraints at:40-41), anddocs/TROUBLESHOOTING.md:212-217already lists two known toolkit mismatches (unsupported GNU version, glibc 2.43 with CUDA 12.9) withSTRATA_NVCC=<its nvcc>as the fix — a third entry "toolkit 12.0 is too old for the WideBatch prefill kernels, use 12.9 or 13.x" fits that list exactly.gh search issues --repo Niko1221/Strata "Formal parameter space"returns nothing today, so this specific error is not tracked.For completeness about my box: I worked around it with a CUDA 12.9 toolkit in a private prefix (
STRATA_NVCC=<its nvcc>is honoured atsetup.py:2100, documented indocs/OLDER_GPUS.md:109), and my installed engine now resolves its CUDA runtime through that prefix, so the toolkit choice is not throwaway for me — which is why the early message matters more than the workaround.@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.