sci-libs/onnxruntime (bentoo)

Search

Install

Install this package:

emerge -a sci-libs/onnxruntime

Package Information

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

Versions

Version EAPI Keywords Slot
1.28.0 8 ~amd64 ~arm64 0

Metadata

Description

Maintainers

Upstream

Raw Metadata XML
<pkgmetadata>
	<maintainer type="person">
		<email>lucascs@proton.me</email>
		<name>Lucas C.S.</name>
	</maintainer>
	<longdescription lang="en">
		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.
	</longdescription>
	<upstream>
		<doc lang="en">https://onnxruntime.ai/docs/</doc>
		<bugs-to>https://github.com/microsoft/onnxruntime/issues</bugs-to>
		<remote-id type="github">microsoft/onnxruntime</remote-id>
		<remote-id type="gitlab">libeigen/eigen</remote-id>
	</upstream>
</pkgmetadata>

Lint Warnings

USE Flags

Manage flags for this package: euse -i <flag> -p sci-libs/onnxruntime | euse -E <flag> -p sci-libs/onnxruntime | euse -D <flag> -p sci-libs/onnxruntime

Flag Description 1.28.0
python ⚠️
test Build and run the upstream test suite (requires dbus-test-runner) ⚠️

Files

Manifest

Type File Size Versions
DIST eigen-3.4.0_p20250216.tar.gz 2894190 bytes 1.28.0
DIST onnxruntime-1.28.0.tar.gz 278663126 bytes 1.28.0
Unmatched Entries
Type File Size