onnxruntime/1.16.3

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
Recipe info
2024-01-16

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
onnxruntime/1.16.3

Using onnxruntime

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
onnxruntime/1.16.3
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("onnxruntime/1.16.3")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): onnxruntime
  • CMake target name(s): onnxruntime::onnxruntime
  • pkg-config file name(s): onnxruntime.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(onnxruntime REQUIRED)
# ...
target_link_libraries(YOUR_TARGET onnxruntime::onnxruntime)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the onnxruntime homepage listed above:

#include "environment.h"
#include "experimental_onnxruntime_cxx_api.h"
#include "experimental_onnxruntime_cxx_inline.h"
#include "onnxruntime/core/common/basic_types.h"
#include "onnxruntime/core/common/code_location.h"
#include "onnxruntime/core/common/common.h"
#include "onnxruntime/core/common/const_pointer_container.h"
#include "onnxruntime/core/common/denormal.h"
#include "onnxruntime/core/common/eigen_common_wrapper.h"
#include "onnxruntime/core/common/exceptions.h"
#include "onnxruntime/core/common/gpu_profiler_common.h"
#include "onnxruntime/core/common/gsl.h"
#include "onnxruntime/core/common/hash_combine.h"
#include "onnxruntime/core/common/inlined_containers.h"
#include "onnxruntime/core/common/inlined_containers_fwd.h"
#include "onnxruntime/core/common/logging/capture.h"
#include "onnxruntime/core/common/logging/isink.h"
#include "onnxruntime/core/common/logging/logging.h"
#include "onnxruntime/core/common/logging/macros.h"
#include "onnxruntime/core/common/logging/severity.h"
#include "onnxruntime/core/common/make_string.h"
#include "onnxruntime/core/common/narrow.h"
#include "onnxruntime/core/common/optional.h"
#include "onnxruntime/core/common/parse_string.h"
#include "onnxruntime/core/common/profiler_common.h"
#include "onnxruntime/core/common/span_utils.h"
#include "onnxruntime/core/common/spin_pause.h"
#include "onnxruntime/core/common/status.h"
#include "onnxruntime/core/common/string_helper.h"
#include "onnxruntime/core/framework/alloc_kind.h"
#include "onnxruntime/core/framework/allocator.h"
#include "onnxruntime/core/framework/buffer_deleter.h"
#include "onnxruntime/core/framework/customregistry.h"
#include "onnxruntime/core/framework/data_types.h"
#include "onnxruntime/core/framework/data_types_internal.h"
#include "onnxruntime/core/framework/endian.h"
#include "onnxruntime/core/framework/execution_provider.h"
#include "onnxruntime/core/framework/float16.h"
#include "onnxruntime/core/framework/float8.h"
#include "onnxruntime/core/framework/framework_common.h"
#include "onnxruntime/core/framework/framework_provider_common.h"
#include "onnxruntime/core/framework/func_api.h"
#include "onnxruntime/core/framework/kernel_def_builder.h"
#include "onnxruntime/core/framework/kernel_registry.h"
#include "onnxruntime/core/framework/op_kernel.h"
#include "onnxruntime/core/framework/op_kernel_context.h"
#include "onnxruntime/core/framework/op_kernel_info.h"
#include "onnxruntime/core/framework/op_node_proto_helper.h"
#include "onnxruntime/core/framework/ort_value.h"
#include "onnxruntime/core/framework/ortdevice.h"
#include "onnxruntime/core/framework/ortmemoryinfo.h"
#include "onnxruntime/core/framework/provider_options.h"
#include "onnxruntime/core/framework/provider_options_utils.h"
#include "onnxruntime/core/framework/provider_shutdown.h"
#include "onnxruntime/core/framework/run_options.h"
#include "onnxruntime/core/framework/sparse_tensor.h"
#include "onnxruntime/core/framework/stream_handles.h"
#include "onnxruntime/core/framework/tensor.h"
#include "onnxruntime/core/framework/tensor_shape.h"
#include "onnxruntime/core/framework/to_tensor_proto_element_type.h"
#include "onnxruntime/core/graph/basic_types.h"
#include "onnxruntime/core/graph/constants.h"
#include "onnxruntime/core/graph/function.h"
#include "onnxruntime/core/graph/graph.h"
#include "onnxruntime/core/graph/graph_nodes.h"
#include "onnxruntime/core/graph/graph_viewer.h"
#include "onnxruntime/core/graph/indexed_sub_graph.h"
#include "onnxruntime/core/graph/node_arg.h"
#include "onnxruntime/core/graph/schema_registry.h"
#include "onnxruntime/core/optimizer/graph_transformer.h"
#include "onnxruntime/core/optimizer/graph_transformer_config.h"
#include "onnxruntime/core/optimizer/graph_transformer_level.h"
#include "onnxruntime/core/optimizer/graph_transformer_utils.h"
#include "onnxruntime/core/optimizer/rewrite_rule.h"
#include "onnxruntime/core/optimizer/rule_based_graph_transformer.h"
#include "onnxruntime/core/session/environment.h"
#include "onnxruntime/core/session/experimental_onnxruntime_cxx_api.h"
#include "onnxruntime/core/session/experimental_onnxruntime_cxx_inline.h"
#include "onnxruntime/core/session/onnxruntime_c_api.h"
#include "onnxruntime/core/session/onnxruntime_cxx_api.h"
#include "onnxruntime/core/session/onnxruntime_cxx_inline.h"
#include "onnxruntime/core/session/onnxruntime_float16.h"
#include "onnxruntime/core/session/onnxruntime_lite_custom_op.h"
#include "onnxruntime/core/session/onnxruntime_run_options_config_keys.h"
#include "onnxruntime/core/session/onnxruntime_session_options_config_keys.h"
#include "onnxruntime/core/session/snippets.dox"
#include "onnxruntime/cpu_provider_factory.h"
#include "onnxruntime_c_api.h"
#include "onnxruntime_cxx_api.h"
#include "onnxruntime_cxx_inline.h"
#include "onnxruntime_float16.h"
#include "onnxruntime_lite_custom_op.h"
#include "onnxruntime_run_options_config_keys.h"
#include "onnxruntime_session_options_config_keys.h"
#include "snippets.dox"