onnxruntime: 1.15.1 -> 1.16.3#258392
Conversation
|
Running nixpkgs-review on x86_64-linux on this PR triggers the build error described here: #251132 (comment) |
|
ONNX Runtime v1.16.3 came out |
ec11a23 to
aff23f4
Compare
aff23f4 to
3ceebee
Compare
3ceebee to
cb43aae
Compare
|
I updated this PR. The ONNX ecosystem on nixpkgs (or one may say in general) is in a bit of disarray. It seems unlikely to get everything to build with a single PR. I'd love some feedback on how to proceed! |
|
Related #281011 (comment) |
|
Result of 4 packages marked as broken and skipped:
6 packages failed to build:
24 packages built:
|
These are all unrelated to this PR I'd say |
|
I mentioned in the other PR before that I had test failures before. I wonder if updating googletest made them go away magically? |
cb43aae to
89ff070
Compare
|
The gtest update was not necessary. I removed that part. But it is good to know that it will also work with 1.14. Once the nixpkgs version is up-to-date (PR) we can use that instead. |
|
Result of 4 packages marked as broken and skipped:
4 packages failed to build:
15 packages built:
|
|
Result of 4 packages marked as broken and skipped:
6 packages failed to build:
24 packages built:
|
|
What needs to be done to get this fixed? |
|
Please note that onnxruntime 1.17.0 has been released in the meantime. Some of the dependencies were (aggressively) updated and the build is yet again not trivial for a nix beginner like me. Unfortunately, I don't currently have the time to push this PR over the finish line. |
|
Can't this PR be finished, and we can just point a finger at Microsoft? |
89ff070 to
9aa468b
Compare
|
I looked into the open reviews and addressed most/all of them. I think we should get a working version in before thinking about 1.17.0. |
https://github.com/microsoft/onnxruntime/releases/tag/v1.16.1 https://github.com/microsoft/onnxruntime/releases/tag/v1.16.2 https://github.com/microsoft/onnxruntime/releases/tag/v1.16.3
9aa468b to
28c1d05
Compare
|
I decided to just fetch the eigen version that they pinned, instead of relying on a patched version of our source. At some point someone should try and use as many system dependencies as possible.
|
There was a problem hiding this comment.
I'm trying to build this with the FIND_PACKAGE_ARGS patch (and without patching eigen at all), so far at 94% without errors. Waiting
EDIT: Yup, it just works, no patching seems to be needed. Or are we expecting a runtime error?
Uhm, I don't know which ref should I push to to update the PR?
|
The |
|
The branch is on |
There was a problem hiding this comment.
This could've been a smaller diff. The real change is that we add FIND_PACKAGE_ARGS everywhere, and later 1) alias eigen (abused by onnxruntime) to Eigen3::Eigen (declared by eigen), 2) set something_INCLUDE_DIRS (abused by onnxruntime) because apparently they don't even consistently use eigen as a target, 3) replace the low-level Populate (never to be used) with the higher-level MakeAvailable
The 2nd item could be done in a cleaner manner by querying stuff about the Eigen3::Eigen target but honestly not worth thinking over, because we should open an issue upstream
There was a problem hiding this comment.
I worry most about someone not familiar with CMake having to rebase those patches, given the precarious maintenance situation. 🤔
There was a problem hiding this comment.
Minimized the patch and added comments to navigate updaters
There was a problem hiding this comment.
I wonder if we should just fetchpatch from vcpkg or conan, because (again) they are working in the same direction: https://github.com/conan-io/conan-center-index/blob/b362f2bb9f266d8f4cf9a5520a0c2977ed9f2500/recipes/onnxruntime/all/patches/1.16.0-0001-cmake-dependencies.patch#L24
f7c321a to
3392575
Compare
SomeoneSerge
left a comment
There was a problem hiding this comment.
No objections to merging from my side.
The FetchContent/git-submodules mess needs to be untangled at some point, but this PR was meant as an update
There was a problem hiding this comment.
RE: darwin
It's just a timeout seems like:
error: building of '/nix/store/y3h8gjk3l1myg7fv5l27v3cz7j48v5yy-onnxruntime-1.16.3.drv!out' from .drv file timed out after 3600 seconds
|
Thank you all for pushing this forward! ❤️
@SomeoneSerge I'm afraid the patch is needed for Darwin: https://hydra.nixos.org/build/248915128/nixlog/1 |
There was a problem hiding this comment.
Ah, I see. Thanks for spotting! We can apply it unconditionally now, in eigen's patches
Description of changes
Regular update to the latest version. Release notes: https://github.com/microsoft/onnxruntime/releases/tag/v1.16.3
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)