Skip to content

GGMLRunner: avoid multiple calls to get_graph#646

Open
idostyle wants to merge 1 commit into
leejet:masterfrom
idostyle:get_graph
Open

GGMLRunner: avoid multiple calls to get_graph#646
idostyle wants to merge 1 commit into
leejet:masterfrom
idostyle:get_graph

Conversation

@idostyle
Copy link
Copy Markdown
Contributor

@idostyle idostyle commented Apr 3, 2025

Not setting up the compute graph twice might result in a minor (/negligible?) performance improvement.

Previously it worked like the following in GGMLRunner#compute:

  1. calls alloc_compute_buffer
    1.1 calls reset_compute_ctx
    1.2 calls get_graph
  2. calls reset_compute_ctx
  3. calls get_graph

Tested on cpu and vulkan locally.

roj234 added a commit to roj234/stable-diffusion.cpp that referenced this pull request Feb 3, 2026
roj234 added a commit to roj234/stable-diffusion.cpp that referenced this pull request Feb 21, 2026
roj234 added a commit to roj234/stable-diffusion.cpp that referenced this pull request Feb 21, 2026
(cherry picked from commit f48d7fc)
roj234 added a commit to roj234/stable-diffusion.cpp that referenced this pull request Feb 21, 2026
(cherry picked from commit f48d7fc)
roj234 added a commit to roj234/stable-diffusion.cpp that referenced this pull request Apr 5, 2026
(cherry picked from commit f48d7fc)
@github-actions
Copy link
Copy Markdown

This PR has been inactive for 365 days. If there is no new activity within 7 days, it will be closed automatically. Comment, push new commits, or remove the pr:inactive label to keep it open. Add pr:keep-open to exempt it from future inactive PR cleanup.

@github-actions github-actions Bot added the pr:inactive Inactive PR pending automatic closure label May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:inactive Inactive PR pending automatic closure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant