Peroxide uses blas and lapack crate in O3 feature. But they are just wrapper crates, so we need source crates.
There are several source crates to provide concrete implementations of BLAS and LAPACK.
And they have system feature to skip building the bundled BLAS implementation.
For specifically, I'll explain Arch-linux case.
In arch linux, you can install openblas or blis. (Also blas is there, but blas-src does not provide system feature.)
- Use OpenBLAS
: Add
openblas-srcdependency toCargo.tomlas same as this repo's Cargo.toml - Use BLIS
: Add
blis-srcdependency toCargo.tomlas same as this repo's Cargo.toml
And add extern crate <CRATE> to your lib.rs or main.rs. The <CRATE> is one of above source crates.
In this repo, I used blis-src.