---
title: 'Intel MKLライブラリ'
taxonomy:
category:
- docs
external_links:
process: true
no_follow: true
target: _blank
mode: active
---
[toc]
## MKLライブラリとは{#summary}
MKLライブラリは、工学、科学、金融系ソフトウェアの開発者向けに、線形代数ルーチン、高速フーリエ変換、ベクトル・マス・ライブラリー関数、乱数生成関数を提供します。これらのルーチンや関数はすべて、Intelプロセッサ用に最適化されています。また、その他のx86プロセッサにも対応しており、問題なく動作します。
## 利用環境{#enviroment}
### 利用できるバージョン・システム{#version}
バージョン | モジュールファイル名 | システムA |システムB/C | システムG | クラウドシステム | 備考
--- | --- | --- | --- | --- | --- | ---
2024.0 | intel/2024.0 | + | +| - | + | 2024年4月導入
2023.2 (default) | intel/2023.2 | + | +| - | + | 2024年4月導入
2023.1 | intel/2023.1 | + | + | - | + | 2023年8月導入
2022.3 | intel/2022.3 | + | + | - | + | 2022年11月導入
\+ : 利用可能
\- : 利用不可
**[Intelコンパイラ](/compilers/intel)のモジュールファイルをロードするだけでMKLもロードされます。**
MKLのために特にモジュールをロードする必要はありません。
MKLライブラリを利用する場合は、Intelコンパイラを利用する必要があります。環境設定については、 [Intelコンパイラ](/compilers/intel#modules) をご覧ください。
<!--
以下のようにmoduleコマンドを実行し、利用したいバージョンのmoduleファイルをロードします。moduleファイル中のスラッシュとバージョンを省略した場合は、上表に記載のデフォルトのバージョンが設定されます。
```nohighlight
$ module load mkl
```
MKLライブラリのバージョンを切り替えたい場合は、以下のようにmoduleコマンドを実行してください。
```nohighlight
$ module switch mkl/10.3.9 mkl/11.0.0
```
-->
moduleコマンドの詳細は [Modules](/config/modules) をご覧ください。
## 利用方法{#usage}
コンパイル時に、 -qmkl オプションを付与します。
```nohighlight
$ icc sample.c -qmkl # C言語の例
$ icpc sample.cpp -qmkl # C++の例
$ ifort sample.f90 -qmkl # Fortranの例
```
## マニュアル{#manual}
* [Developer Reference for Intel oneAPI Math Kernel Library - C](https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top.html)
* [Developer Reference for Intel oneAPI Math Kernel Library - Fortran](https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-fortran/top.html)
* [Developer Guide for Intel oneAPI Math Kernel Library for Linux*](https://www.intel.com/content/www/us/en/develop/documentation/onemkl-linux-developer-guide/top.html)
## アドバイザー{#advisor}
* [Link Line Advisor](https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-link-line-advisor.html)
## リンク{#link}
* [Intel oneAPI Math Kernel Library](https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl.html)