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#3603
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/1677
Author: @nekomario28
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:fix-1645-host-compilers📝 Commits (1)
363c024setup: pass CC/CXX/CUDAHOSTCXX to the CUDA build's cmake (#1645)📊 Changes
3 files changed (+66 additions, -3 deletions)
View changed files
📝
docs/TROUBLESHOOTING.md(+2 -1)📝
setup.py(+16 -2)📝
tools/test_setup_choices.py(+48 -0)📄 Description
Fixes #1645.
CUDA 12 refuses a GCC newer than 14, and TROUBLESHOOTING.md already tells the user to run
CXX=g++-14 ./setup.sh— but the environment reaches CMake only on a build folder's first configure. On a retry, or in the encoder's separate build folder, the env vars never land; the reporter's run died at the last step and had to patchsetup.py.Change
host_compiler_defs()mapsCC/CXX/CUDAHOSTCXXonto-DCMAKE_C_COMPILER/-DCMAKE_CXX_COMPILER/-DCMAKE_CUDA_HOST_COMPILERfor the engine build and the CUDA image encoder — as-D, so an already-configured folder picks them up.CUDAHOSTCXXdefaults toCXX, as CMake's own host compiler does; the CPU encoder build doesn't get the CUDA-only definition. Docs updated to sayCXX=g++-14 ./setup.shsuffices.Test plan
tools.test_setup_choices.HostCompilers: env→defs mapping, CUDAHOSTCXX→CXX default, the C++-only project keeps no CUDA flag, unset adds nothing.test_the_defs_reach_cmakedrivesbuild_enginewith a mockedcmake_buildand asserts both thestrataandstrata-visionconfigures receive the flags.tools.test_setup_choices: 44 tests pass.Not tested: a real nvcc compile under
gcc-14(no CUDA toolkit here) — the change only forwards the flags the reporter verified by hand.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.