[AI] Add ONNX Runtime GPU acceleration install flow to AI preferences#20963
Open
andriiryzhkov wants to merge 1 commit intodarktable-org:masterfrom
Open
[AI] Add ONNX Runtime GPU acceleration install flow to AI preferences#20963andriiryzhkov wants to merge 1 commit intodarktable-org:masterfrom
andriiryzhkov wants to merge 1 commit intodarktable-org:masterfrom
Conversation
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.
Adds a GPU ONNX Runtime installer to the AI preferences tab as an alternative to the shell/PowerShell scripts in
tools/ai/, for users who'd rather not run them from a terminal. Open preferences → AI tab → click install → restart darktable. Both paths consume the samedata/ort_gpu.jsonmanifest and produce the same install layout – they need to stay in sync.What it does
nvidia-smi, AMD viarocminfo+ multi-source ROCm version cascade, Intel vialspci+libze_loader).PT_GNU_STACK PF_Xon installed.sofiles so glibc ≥ 2.41 willdlopenAMD's MIGraphX wheels (they ship with the flag set; newer glibc otherwise rejects them silently).plugins/ai/ort_library_path.Parity with the scripts
The two paths are peers, not master/slave. Both must agree on package selection, install paths, checksum verification, archive layout (including
preserve_layoutfor auditwheel-bundled wheels), and post-install validation. They both readdata/ort_gpu.json; any change to detection rules, install destinations, or supported variants needs landing in both.