| Crates.io | tblis-ffi |
| lib.rs | tblis-ffi |
| version | 0.2.3 |
| created_at | 2025-09-15 06:16:44.812013+00 |
| updated_at | 2025-09-25 05:37:58.043959+00 |
| description | FFI bindings of TBLIS |
| homepage | |
| repository | https://github.com/RESTGroup/tblis-rs |
| max_upload_size | |
| id | 1839478 |
| size | 34,344 |
This crate contains TBLIS FFI bindings.
TBLIS (Tensor BLIS, The Tensor-Based Library Instantiation Software) can perform various tensor operations (multiplication, addition, reduction, transposition, etc.) efficiently on single-node CPU. This library can be an underlying driver for performing einsum (Einstein summation).
Current FFI version is TBLIS 9b95712 after v1.3.0. If you are using an older version of TBLIS, this crate should still work if you do not explicitly call the function that only occurs in higher version of TBLIS.
TBLIS (C++) source code is available on github.
This crate is not official bindgen project. It is originally intended to serve rust tensor toolkit RSTSR and rust electronic structure toolkit REST.
dynamic_loading.This crate supports dynamic loading.
If you want to use dynamic loading, please enable cargo feature dynamic_loading when cargo build.
The dynamic loading will try to find proper library when your program initializes.
LD_LIBRARY_PATH (Linux) DYLD_LIBRARY_PATH (Mac OS), PATH (Windows).RSTSR_DYLOAD_TBLIS to the dynamic library path.Optional features:
dynamic_loading: Supports dynamic loading.ffi_base.rs: Basic type, enum, struct definitions.ffi_extern.rs: Unsafe extern "C" bindgen functions. Only activated when not dynamic loading.dyload_struct.rs: Struct Lib for dynamic loading.dyload_initializer.rs: The initialization function of Lib for dynamic loading.dyload_compatible.rs: Unsafe bindgen function that is compatible to that of ffi_extern.rs. Only activated when dynamic loading.