Skip to content

[AI] Fix AMD ORT install: layout, content, lib detection#20927

Merged
TurboGit merged 2 commits intodarktable-org:masterfrom
andriiryzhkov:ort_amd_fix
May 5, 2026
Merged

[AI] Fix AMD ORT install: layout, content, lib detection#20927
TurboGit merged 2 commits intodarktable-org:masterfrom
andriiryzhkov:ort_amd_fix

Conversation

@andriiryzhkov
Copy link
Copy Markdown
Contributor

The AMD MIGraphX install was broken two ways: each ROCm version ships a structurally different wheel, and the detect button missed nested install layouts.

Changes

  • Manifest: per-version AMD config based on actual wheel inspection (7.0 + 7.1 auditwheel-isolated → preserve_layout: true; 7.2 system-only → preserve_layout: false).
  • Installer (install-ort-gpu.sh): new preserve_layout flag keeps archive paths under install dir so
    manylinux wheels' $ORIGIN/../../<ep>.libs RPATH resolves. Default false preserves OpenVINO + NVIDIA flat behaviour.
  • Detect button: recurses into ~/.local/lib/onnxruntime-*/ skipping *.libs/.

Verified on Fedora 44 (rocm-hip 7.1.1) and unchanged OpenVINO/NVIDIA paths.

Copy link
Copy Markdown
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TurboGit TurboGit added this to the 5.6 milestone May 5, 2026
@TurboGit TurboGit added bugfix pull request fixing a bug depends: external lib labels May 5, 2026
@TurboGit TurboGit merged commit d2c5977 into darktable-org:master May 5, 2026
9 of 15 checks passed
@andriiryzhkov andriiryzhkov deleted the ort_amd_fix branch May 5, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix pull request fixing a bug depends: external lib

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants