[package]
edition = "2024"
rust-version = "1.87"
name = "rlx-cpu"
version = "0.2.2"
authors = [
"Eugene Hauptmann",
"Nataliya Kosmyna",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CPU backend for RLX — SIMD kernels, BLAS dispatch, thread pool, arena executor"
homepage = "https://github.com/MIT-RLX/rlx"
documentation = "https://docs.rs/rlx"
readme = "README.md"
keywords = [
"ml",
"tensor",
"compiler",
"neural-network",
"autodiff",
]
categories = [
"science",
"algorithms",
"compilers",
]
license = "GPL-3.0-only"
repository = "https://github.com/MIT-RLX/rlx"
resolver = "2"
[features]
blas = []
default = ["blas"]
parity-gemm = ["dep:gemm"]
splat = []
[lib]
name = "rlx_cpu"
path = "src/lib.rs"
[[bench]]
name = "cumsum"
path = "benches/cumsum.rs"
harness = false
[[bench]]
name = "sample"
path = "benches/sample.rs"
harness = false
[[bench]]
name = "sgemm"
path = "benches/sgemm.rs"
harness = false
[[bench]]
name = "tuned"
path = "benches/tuned.rs"
harness = false
[dependencies.gemm]
version = "0.19"
optional = true
[dependencies.half]
version = "2"
[dependencies.rayon]
version = "1.10"
[dependencies.rlx-gguf]
version = "0.2.1"
[dependencies.rlx-ir]
version = "0.2.1"
[dependencies.rlx-opt]
version = "0.2.1"
[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.toml]
version = "0.8"
features = ["parse"]
default-features = false
[lints.clippy]
collapsible_if = "allow"
doc_lazy_continuation = "allow"
doc_overindented_list_items = "allow"
large_enum_variant = "allow"
manual_range_contains = "allow"
missing_safety_doc = "allow"
needless_range_loop = "allow"
should_implement_trait = "allow"
single_range_in_vec_init = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
unnecessary_wraps = "allow"
upper_case_acronyms = "allow"
useless_conversion = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust.unused]
level = "warn"
priority = 0