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#3676
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/1792
Author: @Hugua700
Created: 10/10/2026
Status: ❌ Closed
Base:
main← Head:fix/find-vcvars-non-cuda📝 Commits (1)
a88fc3fsetup: find_vcvars() without CUDA asks vswhere for no version range (#881)📊 Changes
1 file changed (+17 additions, -4 deletions)
View changed files
📝
setup.py(+17 -4)📄 Description
#881's CPU image encoder cannot be built on a machine whose only C++ tools are Visual Studio 2026, because
find_vcvars()returnsNonethere.[16.0,18.0)is CUDA 13's requirement (#985), and it was applied to every caller. #985 then addedcuda_vto relax it for CUDA 13.3+ — correct for CUDA callers, but a non-CUDA caller still passes nocuda_v, so the range still applies and VS 2026 stays invisible.build_vision_cpu()callsfind_vcvars()with no arguments, so on that machine it cannot build the encoder at all.This is also a prerequisite for #1789's
--vision cpuon Windows: that accepts a hand-built encoder, but building it still goes throughfind_vcvars().The change (one function, one file):
cuda_v is None→ ask vswhere for no version range. The CPU encoder is built by MSVC, which is happy with any version, andtools/hip/build_windows.batalready calls vswhere that way.cuda_v=(13, 0)still refuses VS 18,cuda_v=(13, 3)still takes it.STRATA_VCVARS=<vcvars64.bat>picks an install by hand, for a vswhere that cannot be used (e.g. a range-matched install that is broken).Measured on the machine of #881 (RX 6800M / gfx1031, Windows 11, Chinese locale, the only C++ tools are Visual Studio 2026 Build Tools 18.4.11605):
Not included here, deliberately:
hip_vision()'s gate, placing the encoder beside the engine) — #1789 covers that, and covers it better;package_windows.pywould carry astrata-vision.exebuilt with-DSTRATA_PORTABLE=ON(AVX2 baseline + static CRT, so it runs on other machines), the zip goes 120 → 122 MiB,BUILD.jsonrecords"vision": "cpu", and a build without an encoder packages exactly as before. Happy to file it if wanted.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.