LocalAI/backend/go/image/stablediffusion-ggml
Richard Palethorpe 1b899e1a68
feat(stablediffusion): Enable SYCL (#5144)
* feat(sycl): Enable SYCL for stable diffusion

This is a pain because we compile with CGO, but SD is compiled with
CMake. I don't think we can easily use CMake to set the linker flags
necessary. Also I could not find pkg-config calls that would fully set
the flags, so some of them are set manually.

See https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-link-line-advisor.html
for reference. I also resorted to searching the shared object files in
MKLROOT/lib for the symbols.

Signed-off-by: Richard Palethorpe <io@richiejp.com>

* fix(ci): Don't set nproc on cmake

Signed-off-by: Richard Palethorpe <io@richiejp.com>

---------

Signed-off-by: Richard Palethorpe <io@richiejp.com>
2025-04-10 15:20:53 +02:00
..
gosd.cpp chore(stable-diffusion-ggml): update, adapt upstream changes (#4889) 2025-02-23 08:36:41 +01:00
gosd.go feat(stablediffusion-ggml): respect build type (#4581) 2025-01-12 18:33:51 +01:00
gosd.h feat(backend): add stablediffusion-ggml (#4289) 2024-12-03 22:41:22 +01:00
main.go feat(backend): add stablediffusion-ggml (#4289) 2024-12-03 22:41:22 +01:00
Makefile feat(stablediffusion): Enable SYCL (#5144) 2025-04-10 15:20:53 +02:00