Skip to content

Remove sd-cpp ROCm support on Windows - #3616

Merged
superm1 merged 2 commits into
mainfrom
claude/funny-faraday-zw8wbr-sd-rocm-windows
Sep 20, 2026
Merged

superm1 merged 2 commits into
mainfrom
claude/funny-faraday-zw8wbr-sd-rocm-windows

Conversation

@jeremyfowers

@jeremyfowers jeremyfowers commented Sep 17, 2026

Copy link
Copy Markdown
Member

@ramkrishna2910 this PR removes sd:rocm windows support because its clogging up CI, doesn’t work, and we haven’t had bandwidth to fix it. We can revert this PR whenever we have bandwidth to provide fixes.

Summary

On Windows, sd-cpp on ROCm delivers no acceleration over CPU. On one test it is 2x slower than CPU.

Source: run 35124275540, release-v2026.39. Test .exe - stable-diffusion runs cpu, rocm and vulkan in one job on one runner, so this is a direct comparison. Seconds per test:

test cpu rocm vulkan rocm speedup vs cpu
test_004_image_generation_with_steps 2.9 3.0 0.4 1.00x
test_005_image_generation_with_cfg_scale 4.0 4.1 0.6 0.98x
test_006_image_generation_with_seed 2.9 3.0 0.5 0.97x
test_020_upscale_basic 39.8 39.9 0.7 1.00x
test_015_image_edit_basic 5.7 11.7 0.9 0.49x

Linux is unaffected and keeps ROCm. Same tests, Test .deb - stable-diffusion:

test cpu rocm vulkan rocm speedup vs cpu
test_004 2.3 0.4 0.3 5.8x
test_005 3.2 0.5 0.4 6.4x
test_006 2.3 0.4 0.3 5.8x
test_020_upscale_basic 32.3 6.2 3.1 5.2x
test_015 4.6 0.8 0.7 5.8x

Documentation

  • Documentation is affected and has been updated.

Breaking Changes

  • This PR introduces breaking changes.
  • This PR does not introduce breaking changes.

On Windows, sd-cpp configs with backend: "rocm" no longer resolve. Migration: vulkan, which is 6-50x faster on the same hardware per the table above, or backend: "auto". Linux unaffected.


Generated by Claude Code

On Windows the sd-cpp ROCm build delivers no GPU acceleration at all: it
runs at CPU speed, and on one test it is twice as slow as CPU. Measured on
release-v2026.39 CI (run 35124275540), per test, cpu / rocm / vulkan
seconds, all three passes on one runner in a single job:

  test_004_image_generation_with_steps      2.9 / 3.0  / 0.4
  test_005_image_generation_with_cfg_scale  4.0 / 4.1  / 0.6
  test_006_image_generation_with_seed       2.9 / 3.0  / 0.5
  test_020_upscale_basic                   39.8 / 39.9 / 0.7
  test_015_image_edit_basic                 5.7 / 11.7 / 0.9

Linux is unaffected and keeps ROCm: the same tests there show ROCm running
5-6x faster than CPU (test_004 2.3 -> 0.4, test_020 32.3 -> 6.2).

The failure is silent, which is why it survived. The Windows ROCm pass
reports "ROCm (TheRock) runtime ready for sd-cpp:rocm", passes all 22
tests and exits OK, so nothing in CI flags it and a Windows user selecting
ROCm for image generation gets CPU-speed inference with no indication.

Narrow the rocm support row to Linux in the descriptor, which is the
single source of truth for the generated support matrices and docs. Drop
the now-unreachable Windows ROCm asset filename, and the rocm pass from
the Windows stable-diffusion CI job.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QY95EN9FjNYMyStH3idZZB
@github-actions github-actions Bot added engine::sd stable-diffusion.cpp backend; image generation/edit/variations runtime::rocm AMD ROCm runtime enhancement New feature or request labels Sep 17, 2026
@jeremyfowers jeremyfowers self-assigned this Sep 17, 2026
@jeremyfowers
jeremyfowers marked this pull request as ready for review September 17, 2026 17:17
@jeremyfowers
jeremyfowers added this pull request to the merge queue Sep 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 17, 2026
@ramkrishna2910
ramkrishna2910 added this pull request to the merge queue Sep 18, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 18, 2026
@superm1
superm1 added this pull request to the merge queue Sep 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 20, 2026
@superm1
superm1 added this pull request to the merge queue Sep 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 20, 2026
@superm1
superm1 enabled auto-merge September 20, 2026 17:01
@superm1
superm1 added this pull request to the merge queue Sep 20, 2026
Merged via the queue into main with commit d5f154a Sep 20, 2026
80 checks passed
@superm1
superm1 deleted the claude/funny-faraday-zw8wbr-sd-rocm-windows branch September 20, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine::sd stable-diffusion.cpp backend; image generation/edit/variations enhancement New feature or request runtime::rocm AMD ROCm runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants