replace gpu_device index with opaque device handles - #129
Merged
Conversation
cunba-ai
pushed a commit
to cunba-ai/transcribe.cpp
that referenced
this pull request
Aug 20, 2026
handy-computer#129) The merge of handy-computer handy-computer#129 renamed the device C API but the dynload posture's symbol table/trampolines (transcribe_dyn.rs) are fork-owned and were not covered upstream: the stale table still listed the four removed symbols (a DLL built from the merged tree would fail the eager dynload resolve, disabling the backend) and lacked the five new ones. - xtask: teach not_loaded_default the transcribe_device_t handle type (null is both the not-loaded default and the API's own sentinel). - transcribe_sys.rs: declare transcribe_build_id() (present in the public header, missing from the committed binding). - cargo xtask bindgen: refresh both files against abihash 7df72bf9; enum underlying types stay c_uint (this machine's libclang resolves them as c_int — kept out of the commit deliberately).
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.
aimed at fixing cjpais/Handy#1894
Basically, our device index stuff kind of got a mess when I implemented auto. So we're just going to do a proper implementation, largely following the steps of llama.cpp in terms of how we enumerate and select devices