mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1076] [CLOSED] fix(build): qualify size_t in vmm.hpp (GCC 12 rejects the unqualified name) #3007
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#3007
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/1076
Author: @aleesposito85
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:fix/vmm-size_t-gcc12📝 Commits (10+)
f4e96d5tests: gdn_rec_head also compares the PP (variant 4) and two-column (variant 5) recurrence kernels, bitwise16bc95aprefill: STRATA_HCD_EXACT=1 - the HC down projection by a WMMA kernel with hipBLASLt solution 1176/1177 k order (StaggerU included), bitwise502fcef#606: the fused SwiGLU q8_1 quantizers keep the block's scale and sum finite too64d0136cache: preserve checkpoints when split allocation failsa0d0056prefill: fused-expert exact wins (table16 via direct selector, float4 moe_combine, LDS alias + occupancy)5f5452bserve: park_current's try covers the checkpoint split too (#752): a host OOM skips parking8b19a38Layer split: --vram-reserve-later-mib, a separate reserve for the later cardsea83d0dResident RAM mode with a layer splitd2d981fsetup: the low-RAM mode's resident variant on several GPUs (#642)cd62e5eserve: a split's stage-0 GPU profile line keeps its text (#848); later stages say which stage📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
include/strata/core/vmm.hpp(+1 -1)📄 Description
Problem
include/strata/core/vmm.hpp:36uses an unqualifiedsize_t:The header provides for itself with only
<cstdint>and<vector>, and on GCC 12.2 (Debian 12's libstdc++) neither brings::size_tinto scope.src/core/vmm.cppincludes this header first, so the CUDA 12 engine build stops at 87%:src/core/vmm.cppis new in 0.1.40 (added at the release tip1735d64). 0.1.39 built fine on the same machine and toolchain.Environment (where this reproduced)
g++ (Debian 12.2.0-14+deb12u1) 12.2.0, CUDA Toolkit 12.8, CMake 4.4.3-DSTRATA_EXPERIMENTAL_SM60=ON -DCMAKE_CUDA_ARCHITECTURES="70;60" -DSTRATA_ENABLE_CUDA=ONset(CMAKE_CXX_STANDARD 20)(top-level default)Minimal reproduction
Standalone, both C++17 and C++20 (so it is not a language-version issue):
Fix
One token, compile-only: no behavior change.
expert_cache.hppalready uses thestd::size_tspelling, so this matches the house style; adding<cstddef>would also fix it, but the qualified name keeps the diff minimal.Verified
sm_60+ 58×sm_70cubins; engine 0.1.40 has been serving since (strata generate: session is up (engine 0.1.40)).vmm.cpp(87%), the patched tree passes it — nothing else in the file or its callers changed.Related but distinct: #1071 (missing
CUDART_VERSIONguard in the same new file for toolkits < 12.5) — this one hits newer toolkits too, so the two together cover CUDA 12.0–12.8 source builds.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.