|0.1.1||Jan 30, 2021|
|0.1.0||Jan 17, 2021|
Used in 5 crates (via openblas-src)
The following Cargo features are supported:
cacheto build in shared directory e.g.
cblasto build CBLAS (enabled by default),
lapacketo build LAPACKE (enabled by default),
staticto link to OpenBLAS statically, and
systemto skip building the bundled OpenBLAS.
cache feature allows the OpenBLAS build products to be reused between
crates that have different
This avoids rebuilding OpenBLAS unnecessarily.
However, this also prevents
cargo clean from working properly,
since the aforementioned build products will not be removed by the command.
The OpenBLAS binary will be placed at
$XDG_DATA_HOME/openblas_build/[hash of build configure object].
For example, build with LAPACK and build without LAPACK will be placed on different directories.
If you build OpenBLAS as a shared library, you need to add the above directory to
LD_LIBRARY_PATH (for Linux) or
DYLD_LIBRARY_PATH (for macOS).
Since build from source is not supported on Windows (see next section), this feature is also not supported.
openblas-src relies on vcpkg to find OpenBLAS. Before building,
you must have the correct OpenBLAS installed for your target triplet and kind of
linking. For instance, to link dynamically for the
openblas for the
vcpkg install openblas --triplet x64-windows
To link statically, install
openblas for the
vcpkg install openblas --triplet x64-windows-static
Apart from providing the
--target option to
cargo build, one also has to
specify the cross-compilation variables of OpenBLAS.
They can be set as environment variables for
cargo build using the
prefix as follows:
Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.