sci-libs/onnxruntime::bentoo
- Ebuilds: 1, Testing: 1.28.0 Description:
ONNX Runtime is Microsoft's cross-platform machine learning inference
and training accelerator. It provides a C/C++/Python API plus optional
execution providers for CPU, NVIDIA CUDA, AMD ROCm, OpenVINO, DirectML,
CoreML and others. It reads ONNX-format models and dispatches operators
to whichever provider is registered.
USE=python builds the Python bindings (numpy + flatbuffers + sympy +
coloredlogs); USE=test pulls dev-cpp/gtest for the C++ test suite.
Adapted from ::guru at the same version; the ebuild and three patches
(relax the flatbuffers dependency, drop -Werror, use system libraries
instead of the vendored copies) are imported with upstream authorship
headers preserved. ::guru's "prevent generation of PIE" patch is
deliberately not carried: it forces POSITION_INDEPENDENT_CODE OFF on
every executable target, which weakens ASLR.
Eigen3 is still fetched as a specific GitLab archive commit because
onnxruntime's CMake requires Eigen fixes that post-date the 3.4.0 tag
and predate the 5.x API break. The pre-fetched, hash-pinned distfile is
handed to CMake via FETCHCONTENT_SOURCE_DIR_EIGEN3, which also keeps
FetchContent from reaching the network mid-build.
Homepage:
https://onnxruntime.ai
https://github.com/microsoft/onnxruntime
License: MIT
sci-libs/onnxruntime-bin::bentoo
- Ebuilds: 1, Testing: 1.28.0 Description:
Prebuilt release of ONNX Runtime, Microsoft's cross-platform machine
learning inference and training accelerator. Installs the upstream
CPU-provider shared libraries (libonnxruntime.so and
libonnxruntime_providers_shared.so) plus the C/C++ headers, taken
straight from the official GitHub release tarball.
Use this when building sci-libs/onnxruntime from source is impractical.
The from-source package is preferred where possible: it links against
system abseil-cpp, protobuf, re2 and onnx, and it can build the Python
bindings, which this binary distribution does not ship.
Upstream publishes separate tarballs for x86_64 (linux-x64) and AArch64
(linux-aarch64); SRC_URI selects between them by keyword. Both were
confirmed present and byte-identical in layout for 1.27.1.
Homepage:
https://onnxruntime.ai
https://github.com/microsoft/onnxruntime
License: MIT