mirror of
https://github.com/deepseek-ai/DeepInfer.git
synced 2026-11-20 04:22:27 +00:00
build.sh tested `[ "$(nvidia_arch.sh)" = sm120 ]`, which discards the script's exit status, so a bad DEEPINFER_NVIDIA_ARCH only surfaced in build_vendor.sh after the long pip install. nvidia_arch.sh also mapped every GPU that is not 12.x (and hosts without nvidia-smi) to sm100 silently, so an SM120 build container without nvidia-smi installed the SM100 dependency set. - build.sh runs detection as its own assignment (set -e stops before pip) and exports the result so build_vendor.sh builds for the same family. - DEEPINFER_NVIDIA_ARCH is case-insensitive. - A detected GPU of another family (e.g. compute capability 9.0) is an error that points at DEEPINFER_NVIDIA_ARCH; no visible GPU still builds for sm100 (GPU-less SM100 build hosts keep working) but warns on stderr. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>