Windows での,MKLML, MKL-DNN 0.14 のインストール手順を説明する.
Windows での Visual Studio Community 2022 のインストール: 別ページ »で説明
Visual Studio Community 2022 に, Build Tools for Visual Studio 2022の機能が含まれている.
Windows での Build Tools for Visual Studio 2022 (ビルドツール for Visual Studio 2022) のインストール: 別ページ »で説明
【関連する外部ページ】
Windows での Git のインストール: 別ページ »で説明
【関連する外部ページ】
Git の公式ページ: https://git-scm.com/
Windows での cmake のインストール: 別ページ »で説明
【関連する外部ページ】
cmake の公式ダウンロードページ: https://cmake.org/download/
Windows での 7-Zip のインストール: 別ページ »で説明
【関連する外部ページ】
7-Zip の公式ページ: https://sevenzip.osdn.jp/
次のウェブページで Microsoft CNTK が指定しているバージョンをインストールする.
https://docs.microsoft.com/en-us/cognitive-toolkit/Setup-CNTK-on-Windows
設定の要点
ダウンロードとインストールの手順
https://docs.microsoft.com/en-us/cognitive-toolkit/Setup-CNTK-on-Windows
C:\mklml_win_2018.0.3.20180406
コマンドプロンプトを管理者として実行: 別ページ »で説明
call powershell -command "$oldpath = [System.Environment]::GetEnvironmentVariable(\"Path\", \"Machine\"); $oldpath += \";C:\mklml_win_2018.0.3.20180406\lib\"; [System.Environment]::SetEnvironmentVariable(\"Path\", $oldpath, \"Machine\")"
call powershell -command "[System.Environment]::SetEnvironmentVariable(\"MKL_PATH\", \"C:\mklml_win_2018.0.3.20180406\", \""Machine\")"
ビルドの必要がある場合には,次の手順を参考にビルドを行うこと.
C:\local\src\mkl-dnn-0.14
起動は,Windows のメニューで「Visual Studio 20..」の下の「x64 Native Tools コマンドプロンプト (x64 Native Tools Command Prompt)」を選ぶ.「x64」は,64ビット版の意味である.
cd c:\local\src\mkl-dnn-0.14 set MKLROOT=c:\local\mklml-mkldnn-0.14 cd cmake cmake -G "Visual Studio 16 2019" -T host=x64 ..
cmake --build . --config RELEASE
cmake --build . --config Release --target install
終了の確認(エラーメッセージが出ていないことを確認)