yscv-tensor 0.2.0

SIMD-accelerated tensor library with f32/f16/bf16 support and 80+ operations
Documentation
1
2
3
4
5
6
7
fn main() {
    // macOS: link Accelerate.framework for vDSP vector operations.
    // Use CARGO_CFG_TARGET_OS (not cfg!) to check the TARGET, not the HOST.
    if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") {
        println!("cargo:rustc-link-lib=framework=Accelerate");
    }
}