2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Intel MKLをWindows+CMake+MinGWで使用する方法

Posted at

Intel MKL (Math Kernel Library) をWindows + CMake + MinGWで使用する方法です。英語圏でも情報が見つからなかったので、ここにメモします。この方法で JetBrains CLion では関数名の補完も効き、Ctrl + Q で関数の簡単なヘルプも出ます。

試したバージョン

  • Intel MKL 2017.4.210
  • MSYS2, gcc 7.2.0 (64ビット)
  • JetBrains CLion 2017.3
  • Windows 10

CMakeLists.txt に追記する物

MyApp は自分のアプリ名。

include_directories("C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/include")
link_directories("C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64")

target_link_libraries(MyApp mkl_rt)

環境変数PATHに追記する物

set "PATH=C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\redist\intel64\mkl;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.4.210\windows\redist\intel64\compiler;%PATH%"
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?