ci: bundle libggml-cuda.so/ggml-cuda.dll in CUDA release artifacts#10
Merged
Merged
Conversation
The ggml CUDA backend is built as a shared library plugin when SD_BUILD_SHARED_LIBS=ON. Bundle it alongside the CUDA runtime libs so that CUDA inference works out of the box without the plugin being missing at runtime. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SD_BUILD_SHARED_LIBS=ONand CUDA is enabled, ggml builds the CUDA backend as a shared library plugin (libggml-cuda.so/ggml-cuda.dll) rather than linking it statically into the main libraryfind(Linux) /Get-ChildItem(Windows) step to copy the plugin into the artifact directory before packaging, in case cmake placed it outsidebuild/bin/(e.g.build/ggml/src/); no-op if it is already thereTest plan
create_release: trueand verifylibggml-cuda.soappears in aubuntu-cuda-*tar.xzggml-cuda.dllappears in awindows-cuda-*zip🤖 Generated with Claude Code