mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2382] [CLOSED] setup: put the CUDA runtime DLLs (bin\x64) on the image job's search path on Windows #4015
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#4015
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/2382
Author: @hogtinbao
Created: 10/14/2026
Status: ❌ Closed
Base:
main← Head:fix-image-libdirs📝 Commits (1)
a3cbcf8setup: put the CUDA runtime DLLs (bin\x64) on the image job's search path on Windows📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
setup.py(+2 -1)📄 Description
Fixes #2381.
The bug
setup.py'sbuild_image_enginerecordedlib_dirsfor a Windows CUDA build as<CUDA_ROOT>\bin:CUDA 12 moved the runtime libraries to
<CUDA_ROOT>\bin\x64;binkeeps only the tools (nvcc.exe,ptxas.exe,nvlink.exe, ...). On a CUDA 13.0.2 install:tools/image/install.pystores that list in the run config (images.lib_dirs), andserve/images.py/serve/server.pyprepend it to the child'sPATH. Sosd-cli.execannot resolvecublas64_13.dll, exits with3221225781(0xC0000135,STATUS_DLL_NOT_FOUND), and the API answers:Anyone who installs CUDA on Windows and enables image generation hits this; nothing else in the build or the three model files is at fault.
The fix
bin\x64first,binsecond, so CUDA 11 (DLLs inbin), CUDA 12/13 (bin\x64), and any layout that has both are covered. The Linux branch is untouched.Verification
[<CUDA>\bin\x64, <CUDA>\bin]withcublas64_13.dllpresent in the first entry, where the old expression returned only<CUDA>\bin(0 DLLs in it).python -m unittest tools.test_qimage→ 14 tests OK;python -m unittest serve.test_images→ 19 tests OK.Q6_K, withimages.lib_dirshand-patched the same way:POST /v1/images/generationsrenders 512×512 in ~21 s and 1024×1024 in ~26 s.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.