Skip to main content

irithyll_core/simd/
mod.rs

1//! SIMD-accelerated math primitives for neural forward passes.
2//!
3//! Provides AVX2-accelerated dot product, matrix-vector multiply, and
4//! activation functions with automatic runtime feature detection and
5//! scalar fallback.
6//!
7//! On `x86_64` targets with the `std` feature enabled, these functions
8//! use runtime `is_x86_feature_detected!("avx2")` to select AVX2 when
9//! available. On all other targets (or without `std`), they fall back
10//! to scalar implementations.
11
12pub mod ops;
13
14pub use ops::{simd_dot, simd_exp, simd_mat_vec, simd_sigmoid, simd_silu, simd_tanh};