Commit 2681bde
committed
Windows CUDA: don't sccache-wrap nvcc; fail loudly on empty build
Run 28329638757 (788aaef): the CUDA build job went GREEN but produced an
empty artifact, so `package` failed with "Artifact not found:
Windows-x86_64-cuda". Two bugs:
1. sccache cannot wrap nvcc on Windows — it dies with
"sccache: error: Could not parse shell line" on every .cu compile, so
ggml-cuda never builds. My build.bat nvcc-launcher addition (mirrored
from build.sh, which works on Linux) is the cause. Remove it: CUDA
device code now builds with nvcc directly (uncached); the cl.exe C/C++
TUs still cache via the C/CXX launcher.
2. The failed `cmake --build` exited 0 (sccache-as-launcher failure path),
so build.bat reached the end and the job went green with no DLLs.
build.bat now captures the build exit code, prints sccache stats
regardless, then propagates a non-zero exit. As a backstop, the three
GPU upload-artifact steps use if-no-files-found: error so an empty
output fails the job loudly instead of surfacing later at package.
Docs (CLAUDE.md) corrected re: nvcc not being cached on Windows.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Deqf9xS6jz9t1idytVTaPV1 parent 788aaef commit 2681bde
3 files changed
Lines changed: 25 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
52 | 46 | | |
53 | 47 | | |
54 | 48 | | |
55 | | - | |
| 49 | + | |
56 | 50 | | |
57 | | - | |
| 51 | + | |
58 | 52 | | |
59 | | - | |
60 | | - | |
| 53 | + | |
| 54 | + | |
61 | 55 | | |
62 | 56 | | |
63 | 57 | | |
64 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| 737 | + | |
737 | 738 | | |
738 | 739 | | |
739 | 740 | | |
| |||
782 | 783 | | |
783 | 784 | | |
784 | 785 | | |
| 786 | + | |
785 | 787 | | |
786 | 788 | | |
787 | 789 | | |
| |||
825 | 827 | | |
826 | 828 | | |
827 | 829 | | |
| 830 | + | |
828 | 831 | | |
829 | 832 | | |
830 | 833 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
| |||
0 commit comments