1
0

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 1 year has passed since last update.

blas

Posted at

WindowsでOpenBLASをビルドする手順は次の通りです:

  1. MSYS2のインストール:
    最初に、MSYS2をインストールします。MSYS2は、WindowsでUnix風の環境を提供するツールです。公式ウェブサイト(https://www.msys2.org/)からインストーラーをダウンロードし、インストールします。

  2. MSYS2の更新:
    インストールが完了したら、MSYS2の更新を行います。MSYS2のシェルを開き、以下のコマンドを実行します:

    pacman -Syu
    
  3. 必要なパッケージのインストール:
    OpenBLASのビルドに必要なパッケージをインストールします。MSYS2のシェルで以下のコマンドを実行します:

    pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make
    
  4. OpenBLASのソースコードを取得する:
    OpenBLASの公式リポジトリ(https://github.com/xianyi/OpenBLAS)からソースコードを取得します。ブラウザを使用してzipファイルをダウンロードするか、MSYS2のシェルでgitを使用してリポジトリをクローンします。

  5. ビルド:
    MSYS2のシェルでOpenBLASのソースディレクトリに移動し、ビルドを行います。ビルドコマンドは以下の通りです:

    make USE_THREAD=0
    

    USE_THREADオプションは、スレッドを使用するかどうかを指定します。必要に応じて適切なオプションを指定してください。

  6. ビルドの完了:
    ビルドが正常に完了すると、OpenBLASのライブラリファイル(.dllや.libファイル)が生成されます。これらのファイルは、Windows向けのプロジェクトに組み込む準備が整いました。

これらの手順に従うことで、WindowsでOpenBLASをビルドすることができます。

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?