docs: Windows+CUDA toolchain notes from a successful local CUDA build - #11
Merged
Conversation
Encodes the recipe verified by a successful local CUDA build: - use VS 2019 Build Tools (MSVC 14.29) with -G 'Visual Studio 16 2019'; newer VS (19.5x) is rejected by supported nvcc - when multiple CUDA toolkits are installed, MSBuild picks the newest via CUDA_PATH_V<major>_<minor>; pin it (nvcc 13 + MSVC 14.29 breaks __cudaLaunch macro -> error C4002) - fix stale clone URL to the renamed repo (game.cpp)
|
Important Review available on request
Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
本地成功构建 CUDA 变体后沉淀的经验(踩了两小时坑):\n- 机器上即便装了更新的 VS(VS2026/MSVC 19.5x),nvcc 不认 → 用 VS2019 BuildTools(MSVC 14.29)+ 生成器 \Visual Studio 16 2019\ + -DCMAKE_CUDA_ARCHITECTURES=75\n- 多套 CUDA 并存时 MSBuild 按 \CUDA_PATH_V_\ 环境变量挑最新版(nvcc13 + MSVC14.29 会因 __cudaLaunch\ 宏不兼容报 error C4002)→ 钉死目标版本\n- 顺带修正过期 clone URL(game_ggml_cli → game.cpp)\n\nCI 参考:ubuntu-22.04/windows-2022 + CUDA 12.6.3。