mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #585] Windows: source build for sm_70 (Volta) fails to link - LNK1169 (cudart_static.lib vs cudart.lib) #274
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#274
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 @noahark on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/585
Windows: source build for sm_70 (Volta) fails to link - LNK1169 (cudart_static.lib x cudart.lib)
Thanks for the great project - a 125B model running on a 2017-era workstation feels like magic. I hit a build bug on the Windows + sm_70 experimental path (PR #295), with a one-line fix that I verified locally.
Environment
STRATA_EXPERIMENTAL_SM60=1set,SETUP.bat --setup --yes --build ...What happens
All 129 targets compile; the final link of
strata.exefails:Root cause
CMake's CUDA language links the runtime per
CMAKE_CUDA_RUNTIME_LIBRARY, whose default isStatic(cudart_static.lib), whileCMakeLists.txtadditionally links the importedCUDA::cudarttarget (the dynamic import lib) - e.g._strata_gpu_runtime_targetand severaltarget_link_libraries(... CUDA::cudart). Both end up on the link line:MSVC rejects the duplicated definitions outright. GNU ld on Linux tolerates them, which is presumably why the Pascal/Volta path (tested in #295 on Linux) never hit this on Windows.
Fix (verified)
Configure with a shared CUDA runtime:
then re-run setup (or the build). Upstream one-liner if you prefer it in-tree:
After the fix: V100-PCIE-32GB benchmarks
Worth adding to
docs/COMMUNITY_BENCHMARKS.md- I couldn't find any V100 numbers there, and #236 (same hardware class) didn't post any.Setup: V100-PCIE-32GB (solo, PCIe Gen3) - dual Xeon E5-2696 v3 - 128 GB RAM - IQ3_XXS - 131,072 context (KV streamed to RAM) - MTP draft (q2_0) - 15,553/24,576 experts (63%) cached in VRAM (25.2 GiB).
Minor note: setup in restricted-network regions
get_llama_cpp()retries the GitHub zip download forever (WinError 10060) in regions where github.com is unreachable. Pre-populatingthird_party/llama.cppat the pinned commit (e.g. via a proxy) makes setup skip it - maybe worth a line in INSTALL.md.Happy to turn the fix into a PR if it helps.
@Niko1221 commented on GitHub (Oct 4, 2026):
Thank you for the fix and the V100 numbers. In 0.1.39 the MSVC build with
STRATA_EXPERIMENTAL_SM60links the shared CUDA runtime only (CMAKE_CUDA_RUNTIME_LIBRARY Sharedunless you set it), which removes the LNK1169. The ready-made engine is unchanged. INSTALL.md now says thatthird_party/llama.cppat the pinned commit can be put in place by hand where github.com cannot be reached. A V100 row for docs/COMMUNITY_BENCHMARKS.md is welcome as a PR.