Code Monkey home page Code Monkey logo

intel-mkl-src's Introduction

intel-mkl-src

crate crate.io description
intel-mkl-src Crate Source crate for Intel-MKL
intel-mkl-sys Crate FFI for Intel-MKL vector math, and statistical functions
intel-mkl-tool Crate CLI utility for redistributing Intel-MKL

Redistribution of Intel MKL as a crate. Tested on Linux, macOS, and Windows (since 0.4.0)

Supported features

  • mkl-*-*-* features specify which MKL to be linked

    • static means MKL will be linked statically, and dynamic means MKL will be linked dynamically

    • lp64 means 32-bit integer interface, ilp64 means 64-bit integer interface

    • iomp means MKL uses Intel OpenMP, seq means sequential execution, e.g. no parallelization

      • OpenMP is not supported for Windows currently #46
    • default is mkl-static-ilp64-seq, and you must choose one of them.

    • macOS is not supported #42

      feature name Linux macOS Windows
      mkl-static-lp64-iomp ✔️ - -
      mkl-static-lp64-seq ✔️ - ✔️
      mkl-static-ilp64-iomp ✔️ - -
      mkl-static-ilp64-seq ✔️ - ✔️
      mkl-dynamic-lp64-iomp ✔️ ✔️ -
      mkl-dynamic-lp64-seq ✔️ ✔️ ✔️
      mkl-dynamic-ilp64-iomp ✔️ ✔️ -
      mkl-dynamic-ilp64-seq ✔️ ✔️ ✔️
  • download feature enables downloading MKL archive managed by this project from AWS S3 (default ON)

Usage

This crate is a *-src crate. This downloads and link Intel MKL, but does not introduce any symbols. Please use blas-sys, lapack-sys, or fftw-sys to use BLAS, LAPACK, FFTW interface of MKL, e.g.

[dependencies]
fftw-sys = { version = "0.4", features = ["intel-mkl"] }

How to find system MKL libraries

This crate seeks system MKL libraries, e.g. installed by apt, yum, or official manual installer, as following manner:

  • Check ${OUT_DIR} where previous build has downloaded
  • Seek using pkg-config crate
    • ${PKG_CONFIG_PATH} has to be set correctly. It may not be set by default in usual install.
    • You can confirm it by checking the following command returns error.
      pkg-config --libs mkl-dynamic-lp64-iomp
      
  • (experimental) Seek ${XDG_DATA_HOME}/intel-mkl-tool
  • Seek a directory set by ${MKLROOT} environment variable
  • Seek default installation path
    • /opt/intel/mkl for Linux
    • C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows for Windows

If not found any MKL library and download feature is ON, this crate will download archive from AWS S3 rust-intel-mkl bucket.

License

MKL is distributed under the Intel Simplified Software License for Intel(R) Math Kernel Library, See License.txt. Some wrapper codes are licensed by MIT License (see the header of each file).

intel-mkl-src's People

Contributors

bytesnake avatar convexbrain avatar danieldk avatar hombit avatar pmarks avatar termoshtt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.