Skip to content

[AI] Unify ORT install + detection across Linux and Windows#20989

Open
andriiryzhkov wants to merge 2 commits into
darktable-org:masterfrom
andriiryzhkov:ort_preserve_layout
Open

[AI] Unify ORT install + detection across Linux and Windows#20989
andriiryzhkov wants to merge 2 commits into
darktable-org:masterfrom
andriiryzhkov:ort_preserve_layout

Conversation

@andriiryzhkov
Copy link
Copy Markdown
Collaborator

Brings the Windows install script and the in-app library detection up to par with the Linux paths. Fixes a Windows build warning in dt_ai_ort_find_libraries from the previous platform-split scan, and synchronises behaviour so the same manifest fields and the same install/detect logic run on both platforms.

preserve_layout is currently only used by Linux AMD/ROCm wheels that ship auditwheel-bundled deps. Windows has no shipped use yet – this is preparatory work so a future package with nested DLLs (or detect-button testing) is handled without code changes.

Changes

  • tools/ai/install-ort-gpu.ps1 – parse preserve_layout from the manifest. A shared Copy-MatchingLibs helper drives both main and runtime-bundle extraction. Verify step recurses (skipping *.libs/) in preserve-layout mode.
  • src/ai/backend_onnx.cdt_ai_ort_find_libraries uses one recursive scan path on both platforms. The Windows-only flat-only branch is removed, fixing the build warning and letting the preferences "detect" button find a nested ORT DLL the same way it does on Linux.

@andriiryzhkov andriiryzhkov added the scope: image processing correcting pixels label May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: image processing correcting pixels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant