Package Base Details: python-onnxruntime

Git Clone URL: https://aur.archlinux.org/python-onnxruntime.git (read-only, click to copy)
Submitter: yan12125_2
Maintainer: yan12125 (lilac)
Last Packager: yan12125
Votes: 3
Popularity: 0.002732
First Submitted: 2019-07-12 11:06 (UTC)
Last Updated: 2022-10-28 16:20 (UTC)

Pinned Comments

yan12125 commented on 2021-01-26 08:35 (UTC) (edited on 2022-05-29 17:11 (UTC) by yan12125)

Prebuilt packages for python-onnxruntime and dependencies are available in the unofficial [archlinuxcn] repository [1]. python-onnxruntime in that repository is also maintained by me.

If you want to build 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.

[1] https://github.com/archlinuxcn/repo/

Latest Comments

1 2 3 4 5 6 Next › Last »

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 :)

yamichan commented on 2022-03-30 05:56 (UTC)

yay :3 by the way! i don't have any CUDA-capable devices, so i found that when i built the package with all the CUDA stuff in, it wouldn't work for me. i put the patch files for the changes i made to get it working up on github in case they are useful or anybody else wants them: https://github.com/yamichan420/AUR-python-onnxruntime-no-CUDA

yan12125 commented on 2022-03-29 10:41 (UTC)

No problem and glad to see you've done it! I updated the pinned comment to include some numbers - hopefully useful for other users.

yamichan commented on 2022-03-29 07:56 (UTC)

yan12125: thank you for your response! in the process of figuring out how to get the logs, i ended up resolving the issue by chance. 4 GB of memory just wasn't enough! but i made a swap file and then it compiled. i'm very sorry for the false alarm >w<