Fix shared-runtime linkage for desktop GPU builds - #50
Merged
Merged
Conversation
This was referenced Sep 16, 2026
leehack
marked this pull request as ready for review
September 17, 2026 00:39
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.
Problem and correction
Desktop GPU crashes have two packaging causes: modern Linux/Windows builds use an obsolete shared-runtime flag, and Linux bundles a source-built core with upstream prebuilt accelerators. A matching SONAME does not establish ABI compatibility.
Select
litert_runtime_link_mode=dynamicfor Linux/Windows on upstream v0.16+, preserving older and Apple/Android configurations. On Linux, stagelibLiteRt.sofrom the same upstream prebuilt directory as the accelerators; reject missing or non-ELF cores instead of falling back to Bazel outputs. Windows already stages the matching prebuilt DLL set.Validation
4c66cb9f1f037f91eed9b1cbe9101463efd8e46aagainstdd86d49, with no blocking findings.No release, consumer pin, or GPU gate changes. Publication and downstream support expansion remain separate. The runtime core source is an upstream prebuilt, not a patched binary.
Refs #47 and leehack/llamadart#506.