Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onnxruntime: remove #105951

Merged
merged 1 commit into from Dec 5, 2020
Merged

onnxruntime: remove #105951

merged 1 commit into from Dec 5, 2020

Conversation

jonringer
Copy link
Contributor

@jonringer jonringer commented Dec 5, 2020

Motivation for this change

I tried to bump this, jonringer@18255bd, but gave up.

Poor cmake and git hygiene has made maintaining this difficult, see:
microsoft/onnxruntime#5966
microsoft/onnxruntime#5967

I'm not aware of anyone using this package. I added it because it seemed like it may have been a more crucial ML package a year ago.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Poor cmake and git hygiene has made maintaining this difficult, see:
microsoft/onnxruntime#5966
microsoft/onnxruntime#5967
@bhipple bhipple merged commit 29045c2 into NixOS:master Dec 5, 2020
@jonringer jonringer deleted the remove-onnxruntime branch December 5, 2020 16:59
@blitz
Copy link
Contributor

blitz commented Jan 11, 2022

It could be interesting to resurrect onnxruntime to package https://github.com/royshil/obs-backgroundremoval, which is a pretty epic OBS Studio plugin.

@jonringer
Copy link
Contributor Author

Well, if they make it so that you can import external resources, but it was annoying to have to checkout ~1GB of sources and dependencies for what should be ~4-12MB of source.

https://github.com/microsoft/onnxruntime/blob/master/.gitmodules

@blitz
Copy link
Contributor

blitz commented Jan 11, 2022

Well, if they make it so that you can import external resources, but it was annoying to have to checkout ~1GB of sources and dependencies for what should be ~4-12MB of source.

https://github.com/microsoft/onnxruntime/blob/master/.gitmodules

Very true. Your Nix expressions still work to build it though, even the latest version. Will look into reviving this when I get chance. Maybe things have improved.

@jonringer
Copy link
Contributor Author

Also, they version control their testdata, which adds like 70MB, which is like 1/2 the checkout size.

I asked if they could use lfs for testdata in microsoft/onnxruntime#5967.

Also, they really need to be following cmake best practices for dependency management. For example https://github.com/microsoft/onnxruntime/blob/master/cmake/external/eigen.cmake should really be using something like find_package to find the eigen dependency; instead of expecting another eigen_SOURCE_PATH to just point to it. Which was part of microsoft/onnxruntime#5966

@puffnfresh
Copy link
Contributor

@blitz coincidentally I started work on this tonight and got fairly far. onnxruntime added onnxruntime_PREFER_SYSTEM_LIB which works pretty well for a bunch of libraries. There's still things like re2 which aren't being picked up but things like protobuf, howard-hinnant-date, flatbuffers and nsync (which I packaged) get picked up and used, instead.

@blitz
Copy link
Contributor

blitz commented Jan 14, 2022

@blitz coincidentally I started work on this tonight and got fairly far. onnxruntime added onnxruntime_PREFER_SYSTEM_LIB which works pretty well for a bunch of libraries. There's still things like re2 which aren't being picked up but things like protobuf, howard-hinnant-date, flatbuffers and nsync (which I packaged) get picked up and used, instead.

Awesome! If you open a PR please tag me.

@puffnfresh
Copy link
Contributor

image

@blitz works surprisingly well, I'll try to push my WIP tomorrow morning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants