mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#2785
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/717
Author: @noahark
Created: 10/4/2026
Status: ❌ Closed
Base:
main← Head:fix-win-sm70-cudart-link📝 Commits (1)
2100ca2fix: make the CUDA language link the shared runtime (#585)📊 Changes
1 file changed (+8 additions, -0 deletions)
View changed files
📝
CMakeLists.txt(+8 -0)📄 Description
Fixes #585.
The final link of
strata.exefailed on a Windows sm_70 source build (MSVC 14.44, CUDA 12.4):cudart_static.lib(...)raised LNK2005 for every runtime symbol already defined incudart.lib(cudart64_12.dll), ending in LNK1169. Root cause:enable_language(CUDA)links theruntime per
CMAKE_CUDA_RUNTIME_LIBRARY(default Static ->cudart_static.lib), while theproject also links the imported
CUDA::cudarttarget explicitly - both libraries on one link line.GNU ld tolerates the duplicates, which is why the Pascal/Volta path (#295, tested on Linux) never
hit this on Linux.
The fix sets the language runtime to
Sharedso it agrees with the explicitCUDA::cudartlinks, guarded by
if(NOT DEFINED ...)so a user's explicit-Dstill wins.Verified on the reporting machine (V100-PCIE-32GB, Windows, CUDA 12.4 + MSVC):
link.exeline contains bothcudart.libandcudart_static.lib-> LNK1169, build fails-D): the generated link line references onlycudart.lib(178 occurrences,
cudart_static.libgone); the engine builds, runs, and serves - field numbersin #617 and PR #707 come from this build (16.5 -> 33.5 tok/s after calibration, IQ3_XXS)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.