Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

Can I use MKL from Java,from C# or from Python?

$
0
0

Can I use MKL from Java, From C# or from Python or from ......? Many developers may ask the first question when learn Intel MKL. The answer isYES. Then a following question is how to?

Here is briefintrodution about how to use:
Intel MKL is composed of a set of libraries, which support C/C++ and Fortran language. When use MKL from other languages like Java, from C# or from Python, the common method is to build a custom dll based onthe set of mkl libraries. (A build tool is available in the tools/builder sub-directory of the Intel MKL package)

But since Intel MKL 10.3,we introduce a new dynamic library- the Single Dynamic Library interface (SDL interface) mkl_rt.so, which removes the need to create your own custom library.

For example,
# Load the share library
mkl= cdll.LoadLibrary("./libmkl_rt.so")
# prior to version 10.3, you may use the created.so as below
# mkl = dll.LoadLibrary("./libmy_mkl_py.so")

Moreover, the SDL library allows us link mkl by single library and dynamically select the interface and threading layer for Intel MKL.

For example
>CC application.c mkl_rt.lib

Is it easy, right?

Please click the below KB for more details,
How do I use Intel MKL with Java*?
Using Intel MKL in your C# program Some more additional tips "How to call MKL from your C# code"Using Intel MKL in your Python program
http://software.intel.com/en-us/articles/using-intel-mkl-in-your-c-program/


Viewing all articles
Browse latest Browse all 2652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>