Commit fc86bc4
cuda: static-link the CUDA runtime (cudart_static)
Link CUDA::cudart_static instead of the dynamic cudart. The whole AI tower
links into a single executable, so there is exactly one cudart instance and no
per-module context split. The shipped binary then carries no cudart DLL
dependency and launches on machines with no CUDA toolkit installed: the driver
stub is loaded lazily, reports no device, and inference falls back to CPU. One
build runs everywhere — GPU when present, CPU otherwise.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 576efff commit fc86bc4
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
304 | 309 | | |
305 | 310 | | |
306 | 311 | | |
| |||
0 commit comments