Compiling OpenBLAS
OpenBLAS is an optimized BLAS[1] (Basic Linear Algebra Subprograms[2]) implementation, using hardware-specific optimizations.
Download♯
Download a release from:
https://github.com/xianyi/OpenBLAS/releases
Compile♯
The makefile automatically detects the hardware. However the FC
environment variable should be set.
Modules:
Currently Loaded Modulefiles:
1) shared 2) proteus 3) gcc/4.8.1 4) sge/univa
Environment variable:
$ export FC=gfortran
Make
$ make >& Make.out &
Test♯
NB Seems to always fail with gcc 4.8.1
$ cd utest
$ make
Install♯
$ make PREFIX=/mnt/HA/groups/myGrp install >& Make.install.out &
This creates the directories:
- ${PREFIX}/include -- containing the include files
- ${PREFIX}/lib -- containing the library (.a and .so) files
References♯
[2] BLAS (Basic Linear Algebra Subprograms) official distribution website