Skip to content

docs: Windows+CUDA toolchain notes from a successful local CUDA build - #11

Merged
KakaruHayate merged 1 commit into
mainfrom
docs/win-cuda-toolchain
Aug 16, 2026
Merged

docs: Windows+CUDA toolchain notes from a successful local CUDA build#11
KakaruHayate merged 1 commit into
mainfrom
docs/win-cuda-toolchain

Conversation

@KakaruHayate

Copy link
Copy Markdown
Owner

本地成功构建 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。

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)
@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 8d9ec0f5-880d-420e-968e-d15788559302


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@KakaruHayate
KakaruHayate merged commit 16d05db into main Aug 16, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant