Skip to content

Commit

Permalink
- MSYS2上でNNUE型の評価関数の実行ファイルがビルドできない件を解説.txtに追記
Browse files Browse the repository at this point in the history
  • Loading branch information
yaneurao committed Sep 24, 2018
1 parent 20120bd commit 1d13003
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/解説.txt
Original file line number Diff line number Diff line change
Expand Up @@ -589,3 +589,23 @@ makefileを使ってcleanするときに、.oファイルを削除しないと
コンパイルに失敗することがある。cleanするときは、この点に注意すること。

mingw32-make clean YANEURAOU_EDITION=YANEURAOU_2018_TNK_ENGINE

■ MSYS2上でNNUE型の評価関数の実行ファイルがビルドできない件

OpenBLASが必要なので、まずこれをpacmanで入れます。

$ pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-clang mingw-w64-x86_64-openblas

あとはMakefileでincludeフォルダを以下のところで指定していますが、これが違うフォルダであるなら適宜変更が必要となります。

ifeq ($(MSYSTEM),MINGW64)
BLAS += -I$(shell cygpath -aw /mingw64/include/OpenBLAS)
endif

※ この部分は、MINGW64環境内でこうすると絶対パスが帰ってくるのを利用しています
$ cygpath -aw /mingw64/include/OpenBLAS
C:\msys64\mingw64\include\OpenBLAS

※ pacmanでOpenBlasをインストールしたときに
Set the environment variable OPENBLAS_NUM_THREADS to the number of threads to use.
と出ています。実行時に環境変数OPENBLAS_NUM_THREADSに使いたいスレッド数を設定すべき?

0 comments on commit 1d13003

Please sign in to comment.