mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-29 03:26:12 +00:00
stable-diffusion.dll linked the driver import library only to read the compute capability of the device, so it imported nvcuda.dll at load time. On a machine without an NVIDIA driver, such as the CI runner, sd-cli.exe could not start at all (status 127 in Git Bash): the smoke test of the cuda12 portable package failed, and the package would not have run on a CPU-only PC either. The three driver functions are now looked up with LoadLibraryEx/dlopen the first time a CUDA device is queried, and the library no longer links the driver. The smoke test of the portable workflow now lists the DLLs a Windows executable imports, and the ones that cannot be found, when it fails to start. Claude-Session: https://claude.ai/code/session_01EhZzDBkuuMp1jBf4WtEySC |
||
|---|---|---|
| .. | ||
| ggml.cmake | ||
| stable-diffusion-config.cmake.in | ||
| stable-diffusion.pc.in | ||