Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lapack-src"
version = "0.12.0"
version = "0.13.0"
edition = "2024"
license = "Apache-2.0 OR MIT"
authors = [
Expand All @@ -24,7 +24,10 @@ changelog = "CHANGELOG.md"

[features]
accelerate = ["accelerate-src"]
intel-mkl = ["intel-mkl-src"]
intel-mkl-dynamic-parallel = ["intel-mkl-src/mkl-dynamic-lp64-iomp"]
intel-mkl-dynamic-sequential = ["intel-mkl-src/mkl-dynamic-lp64-seq"]
intel-mkl-static-parallel = ["intel-mkl-src/mkl-static-lp64-iomp"]
intel-mkl-static-sequential = ["intel-mkl-src/mkl-static-lp64-seq"]
netlib = ["netlib-src"]
openblas = ["openblas-src"]
r = ["r-src"]
Expand All @@ -47,4 +50,4 @@ optional = true

[dependencies.r-src]
version = "0.2.1"
optional = true
optional = true
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ lapack-src = { version = "0.12", features = ["openblas"] }
lapack-src = { version = "0.12", features = ["r"] }
```

### Intel MKL Configuration

The `intel-mkl` feature will *statically* link the *sequential LP64* version of
the MKL library. To link other versions of the library, check the `intel-mkl-*-*-*`
features inside this crate, which are analogous to the feature flags of
the [`intel-mkl-src` crate] (https://crates.io/crates/intel-mkl-src).

## Contribution

Your contribution is highly appreciated. Do not hesitate to open an issue or a
Expand Down
13 changes: 11 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
//! The following implementations are available:
//!
//! * `accelerate`, which is the one in the [Accelerate] framework (macOS only),
//! * `intel-mkl`, which is the one in [Intel MKL],
//! * `intel-mkl-*`, which is the one in [Intel MKL], where
//! * `intel-mkl-dynamic-parallel` dynamically links the parallel backend of MKL
//! * `intel-mkl-dynamic-sequential` dynamically links the sequential backend of MKL
//! * `intel-mkl-static-parallel` statically links the parallel backend of MKL
//! * `intel-mkl-static-sequential` statically links the sequential backend of MKL
//! * `netlib`, which is the reference one by [Netlib],
//! * `openblas`, which is the one in [OpenBLAS], and
//! * `r`, which is the one in [R].
Expand Down Expand Up @@ -37,7 +41,12 @@
#[cfg(feature = "accelerate")]
extern crate accelerate_src as raw;

#[cfg(feature = "intel-mkl")]
#[cfg(any(
feature = "intel-mkl-dynamic-parallel",
feature = "intel-mkl-dynamic-sequential",
feature = "intel-mkl-static-parallel",
feature = "intel-mkl-static-sequential",
))]
extern crate intel_mkl_src as raw;

#[cfg(feature = "netlib")]
Expand Down
Loading