mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1485] [Bug]: update.sh cannot rebuild a locally compiled engine on a PC with a Volta card beside an RTX 40 (nvcc: Unsupported gpu architecture 'compute_70') #598
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#598
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 @bh611 on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1485
What happened
./update.shon a checkout whose engine is compiled locally (engine/BUILD.json→"source": "local") cannot rebuild the engine. The rebuild picks the wrong architecture and at the end--updatereports success while keeping the old engine:Expected: the engine for this model's actual cards (GPU 0 + GPU 2, both RTX 4090, sm_89) is rebuilt with CUDA 13 and the update finishes with engine 0.1.40.3.
Why it happens
The PC has three NVIDIA cards: GPU 0 = RTX 4090 (24 GB, sm_89), GPU 1 = Tesla V100-PCIE-32GB (32 GB, sm_70, never opted in), GPU 2 = RTX 4090 (24 GB). The model is installed on GPU 0 + GPU 2 (
strata-iq3_s.json→"gpu": [0, 2],"layer_split": "auto")../update.sh→setup.py --update→update_install()→update_installed_engine(url_base, 13)(setup.py:2853) — for the main engine the toolkit is hardcoded to 13.gpu_info()with no pick (setup.py:2909).gpu_info()returns the card with the most VRAM (setup.py:1195:g = max(found, key=lambda x: (round(x["vram_gb"]), -x["index"]))) — here that is the V100 (32 GB > 24 GB), although it is not one of the model's GPUs and was not admitted as an experimental card (OLD_GPUSis only set later,setup.py:4717).archsbecomes{70} ∪ BUILD.json's {89}(setup.py:2914), and because the toolkit is 13,install_build_tools()computesold = False(setup.py:2984). The CUDA 12 guard atsetup.py:2991("...is compiled here with the NVIDIA CUDA Toolkit 12.x... CUDA 13 cannot compile for these cards") is bypassed, and the build runs with CUDA 13 forsm_70— which CUDA 13 cannot compile.--gpu/--gpuscannot work around it: thea.updatebranch returns (setup.py:4644) beforeGPU_PICK = a.gpuis set (setup.py:4800).CUDA_VISIBLE_DEVICESdoes not help either, sincegpus()readsnvidia-smi.Suggested fix
In
update_installed_engine()use the model's own GPU set (the config'sgpu/gpus), or filtergpu_info()throughgpu_problem()/old_gpus_opt_in(), so a card that is not part of this model's engine cannot enter the arch list.Use
cuda_choice(archs, cuda)(setup.py:843) instead of the hardcoded13, or at least let the union of architectures reachinstall_build_tools()'s existing CUDA 12 decision.Possibly related: #128 (engine not rebuilt when adding a GPU with a different architecture), #295 (the experimental sm_60/70 build), #236 (community Volta build).
Workaround
Rebuild through the project's own path with the 4090 only, which writes a correct
engine/BUILD.jsonfor 0.1.40.3:./setup.shthen sees the engine as up to date and starts normally.Strata version, GPU, OS
Engine log (optional)
This bug is in the build step, not in the engine, so the useful log is the compile output above (the full terminal output, or
./update.sh 2>&1 | tee update-fail.logon the next attempt). The engine log of the previous successful start is attached asstrata-iq3_s.log.@Niko1221 commented on GitHub (Oct 10, 2026):
Thank you for the root cause, it was exact. update_installed_engine() took the card with the most VRAM, which was the V100. On v0.1.42 the card an engine update compiles for is one the installed models use (their "gpu"), and for the CUDA 13 engine a card it cannot compile for is left out when another can. An explicit --gpu still wins. The CUDA 12 engine is unchanged. Tests in tools/test_setup_update_gpu.py. Not run on a multi-GPU box with the real toolchain.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.