Thanks for the suggestion. As I've switched to PyPI wheels, I don't use this package anymore and I will orphan it. Feel free to adopt and improve it!
Search Criteria
Package Details: python-onnxruntime 1.14.1-1
Git Clone URL: | https://aur.archlinux.org/python-onnxruntime.git (read-only, click to copy) |
---|---|
Package Base: | python-onnxruntime |
Description: | Cross-platform, high performance scoring engine for ML models |
Upstream URL: | https://github.com/microsoft/onnxruntime |
Licenses: | MIT |
Submitter: | None |
Maintainer: | sl1pkn07 |
Last Packager: | sl1pkn07 |
Votes: | 5 |
Popularity: | 0.64 |
First Submitted: | 2019-07-12 11:06 (UTC) |
Last Updated: | 2023-05-23 06:53 (UTC) |
Dependencies (43)
- onnxruntime (onnxruntime-git, onnxruntime-bin)
- python-coloredlogs
- python-flatbuffers (python-flatbuffers-git)
- python-numpy (python-numpy-git, python-numpy1.22, python-numpy-openblas, python-numpy-flame, python-numpy-mkl-bin, python-numpy-mkl)
- python-packaging (python-packaging-21)
- python-protobuf (python-protobuf-git)
- python-sympy (python-sympy-git)
- abseil-cpp (abseil-cpp-git) (make)
- boost (boost-git, boost174) (make)
- chrono-date (make)
- chrpath (chrpath-svn) (make)
- cmake (cmake-git) (make)
- cuda (cuda-11.0, cuda11.1) (make)
- cudnn (make)
- cxxopts (make)
- eigen (eigen-git) (make)
- flatbuffers (flatbuffers-git) (make)
- git (git-vfs, git-run-command-patch-git, git-git, git-fc) (make)
- nccl (nccl-git) (make)
- nlohmann-json (nlohmann-json-git) (make)
- onednn (onednn-git) (make)
- pybind11 (pybind11-git) (make)
- python-coloredlogs (make)
- python-flatbuffers (python-flatbuffers-git) (make)
- python-numpy (python-numpy-git, python-numpy1.22, python-numpy-openblas, python-numpy-flame, python-numpy-mkl-bin, python-numpy-mkl) (make)
- python-pip (make)
- python-protobuf (python-protobuf-git) (make)
- python-setuptools (make)
- python-sympy (python-sympy-git) (make)
- re2 (re2-git) (make)
- python-cerberus (optional) – for orttraining
- python-h5py (python-h5py-git, python-h5py-openmpi) (optional) – for orttraining
- python-importlib-metadata (optional)
- python-matplotlib (python-matplotlib-git) (optional)
- python-onnx (onnx-py) (optional) – for the backend API, quantization, orttraining, transformers and various tools
- python-psutil (optional) – for transformers
- python-py-cpuinfo (optional) – for transformers
- python-py3nvml (optional) – for transformers
- python-pytorch (python-pytorch-mkl-git, python-pytorch-cuda-git, python-pytorch-mkl-cuda-git, python-pytorch-cuda, python-pytorch-opt, python-pytorch-opt-cuda, python-pytorch-opt-rocm, python-pytorch-rocm) (optional) – for transformers, orttraining and various tools
- python-pytorch-cuda (python-pytorch-mkl-cuda-git, python-pytorch-opt-cuda) (optional)
- python-scipy (python-scipy-git, python-scipy-mkl-bin, python-scipy-mkl) (optional) – for transformers and various tools
- python-tensorflow-opt-cuda (optional)
- python-transformers (optional) – for transformers
Required by (8)
- python-invisible-watermark
- python-mmaction2 (optional)
- python-mmpose (optional)
- python-onnx2pytorch (check)
- python-onnxoptimizer (check)
- python-tensorrt (optional)
- python-tf2onnx (check)
- vapoursynth-plugin-vsdpir-git (optional)
Sources (6)
yan12125 commented on 2023-01-31 01:47 (UTC)
sl1pkn07 commented on 2023-01-30 19:09 (UTC)
something strange. the build of onnxruntime eats all my ram (128Gb). wtf XDDD
sl1pkn07 commented on 2023-01-30 18:27 (UTC)
please add libre2.so
instead off re2
in dependencies (or add the main package to makepepends and the library to depends). if not, pacman is unable to detect soversions bump when update the packages
└───╼ ldd /usr/lib/libonnxruntime.so
linux-vdso.so.1 (0x00007ffd56b33000)
libprotobuf-lite.so.32 => /usr/lib/libprotobuf-lite.so.32 (0x00007fbd05153000)
libmpi.so.40 => /usr/lib/libmpi.so.40 (0x00007fbd040d6000)
libnsync_cpp.so.1 => /usr/lib/libnsync_cpp.so.1 (0x00007fbd05146000)
libre2.so.9 => not found
----cut----
if the depends packages provides the name of librariy, please use them
greetings
yan12125 commented on 2022-10-28 16:23 (UTC)
I have easily build this and other packages with LTO enabled without any issues.
Thanks! I can confirm LTO works and I've updated PKGBUILD.
I just want to give you a feedback because I saw you disabled it in various packages.
I disabled LTO because it wasn't working. If it works now, feel free to leave a comment at corresponding packages.
Moebius14 commented on 2022-10-26 18:01 (UTC) (edited on 2022-10-26 19:28 (UTC) by Moebius14)
I get an error: invalid initialization of reference of type ‘const Eigen::half&’ from expression of type ‘int’
error in the file .../Eigen/src/Core/PartialReduxEvaluator.h when compiling. Nothing new, eigen always makes trouble when building onnx/tensorrt packages.
UPDATE:: Nevermind, I fixed the issue thanks to @bidskii who faced the exact same problem not so long ago. You need to patch the file mentioned above with this this commit, then everything will compile smoothly!
Thank you, bidskii!
Also @yan12125: I have easily build this and other packages with LTO enabled without any issues. I just want to give you a feedback because I saw you disabled it in various packages.
yan12125 commented on 2022-10-23 09:08 (UTC)
Updated!
sl1pkn07 commented on 2022-10-22 23:59 (UTC)
please add -c protocol.file.allow=always
in https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-onnxruntime#n73
greetings
yan12125 commented on 2022-08-27 04:34 (UTC)
@acxz: Thanks for noticing that! I've pushed a fix.
acxz commented on 2022-08-26 23:03 (UTC)
Building in a clean chroot, I am getting the following build error:
CMake Warning at CMakeLists.txt:1591 (find_package):
By not providing "FindFlatbuffers.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Flatbuffers", but CMake did not find one.
Could not find a package configuration file provided by "Flatbuffers" with
any of the following names:
FlatbuffersConfig.cmake
flatbuffers-config.cmake
Add the installation prefix of "Flatbuffers" to CMAKE_PREFIX_PATH or set
"Flatbuffers_DIR" to a directory containing one of the above files. If
"Flatbuffers" provides a separate development package or SDK, be sure it
has been installed.
Use flatbuffers from submodule
CMake Error at CMakeLists.txt:1607 (add_subdirectory):
The source directory
/build/python-onnxruntime/src/onnxruntime/cmake/external/flatbuffers
does not contain a CMakeLists.txt file.
yan12125 commented on 2022-03-30 12:44 (UTC)
Hmm, if you specify CPUExecutionProvider
(or DnnlExecutionProvider
if you have a recent Intel CPU) like https://aur.archlinux.org/pkgbase/python-onnxruntime#comment-834569, things should work without CUDA. Anyway, it indeed makes little sense to install giant cuda packages without using them. I will find time to add an option in PKGBUILD to disable CUDA builds. Your modifications seem a good start point :)
Pinned Comments
yan12125 commented on 2021-01-26 08:35 (UTC) (edited on 2023-01-31 01:49 (UTC) by yan12125)
To build this package from sources, make sure you have enough free memory and disk space. On my machine (8-core Intel i7-4770), building this packages takes ~20GB disk space, ~2.3GB memory space and 40 minute build time. On a more powerful server (40-core Intel Xeon 4114), building takes ~18 minutes.
If you don't need CUDA, modify PKGBUILD and replace
_ENABLE_CUDA=1
with_ENABLE_CUDA=0
. Build time will be much shorter.