stable-diffusion.cpp/examples/common
Claude 2e354710ce
Merge upstream/master (leejet/stable-diffusion.cpp b13a482) into fix_to_claude
Brings in the 20 upstream commits since 2988060 (2026-10-11): per-module
automatic flash attention (#2132), automatic direct convolution (#2134,
#2141), reclaim before trusting wrapped Vulkan iGPU memory estimates
(#2124), UTF-8 file paths on Windows (#2144, #2145), FP8 CPU crash fix
(#2140), the ggml sync to dc99877 (#2147), FLUX.3 Klein, MOSS-Image, the
MoSR upscaler, MiniMax-H3 LoRAs, Qwen Image 2.1 Turbo preset, ROCm and
MUSA Dockerfiles, documentation.

Conflicts resolved, keeping both sides:

- include/stable-diffusion.h: upstream's flash_attn_mode and
  conv_direct_mode stay right after conditioning_cache_size, so the
  layout up to there is still upstream's; memory_guard,
  disable_backend_fallback and multi_gpu follow.
- src/core/ggml_extend_backend.cpp: upstream's new cuda_compiled_arch()
  keeps asking the compute capability through sd::cuda_driver (the driver
  is looked up at run time, so the engine starts where there is no NVIDIA
  driver), not through <cuda.h>; the HIP include from upstream is kept.
- src/model_manager.cpp: the CPU memory guard and upstream's
  requires_reclamation rule are both applied: a Vulkan iGPU estimate that
  wrapped is reclaimed before it is trusted, and the guard still decides
  for the CPU backend.
- src/model_loader.cpp: includes of both sides; load_worker keeps the
  file handle pool and the open retry.
- examples/server/runtime.cpp: --degradation-cooldown check and
  upstream's u8path for the --serve-html-path check.
- docs/backend.md: the "Several GPUs" section and upstream's "Direct
  convolution" and "Flash attention" sections.

The ggml submodule moves from d25b121 to dc99877 (upstream's pin).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EhZzDBkuuMp1jBf4WtEySC
2026-10-18 19:51:51 +02:00
..
common.cpp Merge upstream/master (leejet/stable-diffusion.cpp b13a482) into fix_to_claude 2026-10-18 19:51:51 +02:00
common.h Merge upstream/master (leejet/stable-diffusion.cpp b13a482) into fix_to_claude 2026-10-18 19:51:51 +02:00
log.cpp refactor: escape newlines in prompt logs and clarify source separators (#2106) 2026-10-06 19:51:12 +08:00
log.h feat: add verbose logging and log-level selection (#1941) 2026-09-06 23:14:03 +08:00
media_io.cpp fix: handle UTF-8 file paths on Windows (#2145) 2026-10-17 00:50:42 +08:00
media_io.h fix: add alpha channel input for Qwen Image 2.1 and relative docs (#2021) 2026-09-22 21:45:06 +08:00
profile.cpp feat: let --profile auto count the memory of several GPUs 2026-10-14 01:03:42 +02:00
profile.h feat: let --profile auto count the memory of several GPUs 2026-10-14 01:03:42 +02:00
resource_owners.hpp feat: add minimax-h3 support (#1854) 2026-08-04 23:14:18 +08:00