From fb10de9a5c48739dd767f9e5f6e5b939da596a12 Mon Sep 17 00:00:00 2001 From: Ken VanDine Date: Tue, 9 Jun 2026 21:42:34 -0400 Subject: [PATCH] fix(cuda): add -DGGML_CUDA=ON to Windows CUDA build The Windows CUDA cmake invocation was missing -DGGML_CUDA=ON, which meant the ggml CUDA backend was never compiled in. Without it, the build silently falls back to CPU even when the CUDA toolkit is installed. This is the same fix already applied to the Linux CUDA build in commit 6a68a98. Fixes: lemonade-sdk/lemonade#2171 (sdcpp:cuda falls back to CPU on Windows + RTX 4090) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c686591d..025b07b75 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -247,6 +247,7 @@ jobs: set cmake_arch=%sm:sm_=% cmake -S . -B build -G "Ninja Multi-Config" ^ -DSD_CUBLAS=ON ^ + -DGGML_CUDA=ON ^ -DCMAKE_CUDA_ARCHITECTURES=%cmake_arch% ^ -DGGML_NATIVE=OFF ^ -DSD_BUILD_SHARED_LIBS=ON