intel-onemkl-prebuild

Crates.iointel-onemkl-prebuild
lib.rsintel-onemkl-prebuild
version0.2.0
created_at2025-09-02 06:04:14.764067+00
updated_at2025-09-15 22:07:47.722465+00
descriptionSet up Intel oneAPI Math Kernel Library (oneMKL)
homepage
repositoryhttps://github.com/jkawamoto/intel-onemkl-prebuild
max_upload_size
id1820643
size21,931
Junpei Kawamoto (jkawamoto)

documentation

https://docs.rs/intel-onemkl-prebuild

README

intel-onemkl-prebuild

Latest version docs.rs GitHub License Build

intel-onemkl-prebuild is a Rust crate that automatically sets up and links the Intel oneAPI Math Kernel Library (oneMKL). It downloads and installs the prebuilt oneMKL binaries, and exposes them to your Rust project.

Usage

Add this crate to your Cargo.toml:

[dependencies]
intel-onemkl-prebuild = "0.2.0"

Then add the extern declaration to your main.rs or lib.rs to ensure the libraries are properly linked:

extern crate intel_onemkl_prebuild;

This crate also exports the DEP_MKL_ROOT environment variable, which points to the root directory of the installed MKL. You can use this in your build.rs to locate the library.

Features

You can control the integer size and threading model via Cargo features:

  • ilp64 — use the 64-bit integer interface.
  • lp64 — use the 32-bit integer interface.
  • openmp — use the Intel OpenMP runtime.
  • sequential — use sequential (single-threaded) execution.
  • system - use locally installed MKL libraries on your system instead of downloading and installing new ones.

Default features are: ilp64 and sequential.

Prerequisites

  • Windows: The path to nuget.exe must be available in your PATH.
  • Linux: No special tools are required beyond a standard build environment.

This crate will automatically download and install Intel oneMKL for the supported platforms.

Rust Compatibility

  • Edition: Rust 2021
  • MSRV: 1.77 (Minimum Supported Rust Version)

License

This application is released under the MIT License. For details, see the LICENSE file.

By using this crate, you agree to the Intel MKL End User License Agreement.

Commit count: 22

cargo fmt