ScaLAPACKをMountain Lionにインストール

LAPACKの並列版のScaLAPACKをmac(Mountain Lion)にインストールしました。

準備するもの

インストール方法

解答したscalapack_installerのフォルダで以下のコマンドを実行します。

$ python setup.py --prefix=./build/. --mpicc=/usr/local/bin/mpicc --mpif90=/usr/local/bin/mpif90 --mpirun=/usr/local/bin/mpirun --downall

詳しいフラグの指定はREADMEに書いてあります。
prefixフラグで指定されたフォルダにライブラリが設置されます。

以下のように表示されればScaLAPACKのインストール完了です。

******************************************************
******************************************************

ScaLAPACK installation completed.


Your BLAS library is                     : -L/build/lib -lrefblas

Your LAPACK library is                   : -L/build/lib -ltmg -lreflapack

Your BLACS/ScaLAPACK library is          : -L/build/lib -lscalapack

Log messages are in the 
/build/log directory.

The ouput of ScaLAPACK testing programs are in: build/log/sca_testing

The
/build
directory contains the source code of the libraries 
that have been installed. It can be removed at this time.
          

******************************************************
******************************************************