Skip to content

Commit 3dcf92f

Browse files
committed
Create intel-mkl-sys
1 parent d39afdd commit 3dcf92f

File tree

6 files changed

+13726
-0
lines changed

6 files changed

+13726
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[workspace]
22
members = [
33
"intel-mkl-src",
4+
"intel-mkl-sys",
45
"intel-mkl-tool",
56
]

intel-mkl-sys/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "intel-mkl-sys"
3+
version = "2019.5.0"
4+
authors = ["Toshiki Teramura <[email protected]>"]
5+
edition = "2018"
6+
7+
[dependencies.intel-mkl-src]
8+
path = "../intel-mkl-src"

intel-mkl-sys/bindgen.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -uex
3+
4+
bindgen \
5+
--use-core \
6+
--with-derive-{default,eq,hash,ord} \
7+
wrapper.h \
8+
> src/mkl.rs

intel-mkl-sys/src/lib.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//! Rust binding to Intel-MKL including
2+
//!
3+
//! - [Vector Mathematical Functions (mkl_vml.h)](https://software.intel.com/en-us/onemkl-developer-reference-c-vector-mathematical-functions)
4+
//! - [Statistical Functions (mkl_vsl.h)](https://software.intel.com/en-us/onemkl-developer-reference-c-statistical-functions)
5+
//!
6+
//! Other parts of Intel-MKL is served via
7+
//!
8+
//! - [blas-sys](https://crates.io/crates/blas-sys)
9+
//! - [lapack-sys](https://crates.io/crates/lapack-sys)
10+
//! - [lapacke-sys](https://crates.io/crates/lapacke-sys)
11+
//! - [fftw-sys](https://crates.io/crates/fftw-sys)
12+
//!
13+
#![allow(
14+
improper_ctypes,
15+
non_upper_case_globals,
16+
non_camel_case_types,
17+
non_snake_case
18+
)]
19+
include!("mkl.rs");

0 commit comments

Comments
 (0)