Skip to main content

oneliner_runtime/
lib.rs

1#![no_std]
2
3#[cfg(feature = "alloc")]
4extern crate alloc;
5
6mod arena;
7mod buffer;
8mod executor;
9mod interface;
10
11#[cfg(feature = "iree-runtime")]
12mod iree;
13
14pub use buffer::{
15    concurrent, fill, Access, AnyBuffer, AnyBufferRange, Buffer, BufferMut, BufferRange,
16    BufferSource,
17};
18
19pub use executor::{DefaultExecutor, Executor, SequentialExecutor, WorkItem};
20pub use interface::{
21    Error, ModelArtifacts, ModelInference, ModelSource, Shape, Tensor, Tensor4D, TensorArray,
22};
23#[cfg(feature = "iree-runtime")]
24pub use iree::{
25    dispatch, dispatch_fn_from_library, iree_hal_executable_dispatch_state_v0_t,
26    iree_hal_executable_environment_v0_t, iree_hal_executable_import_thunk_v0_t,
27    iree_hal_executable_import_v0_t, iree_hal_executable_library_header_t,
28    iree_hal_executable_library_query_fn_t, iree_hal_executable_workgroup_state_v0_t,
29    iree_hal_processor_v0_t, try_dispatch, try_dispatch_with_executor, DispatchFn,
30};
31
32pub use aligned::{Aligned, A16, A2, A32, A4, A64};
33pub type AlignedType = A64;
34
35pub use arena::{ArenaStorage, OwnedArena, SharedArena};