For the REFERENCE LAPACK
Just download the lapack.tgz from LAPACK website: http://www.netlib.org/lapack
- Code: Select all
open a terminal
unzip the package
go into the LAPACK folder
cp make.inc make.inc.example
make blaslib # To generate the Reference BLAS Library
make
Note: You also can use Mac Accelerate Framework, It will give you better performance.
It is installed on your mac once you install XCODE or the Developer package.
More info here: https://developer.apple.com/performance ... ework.html
To link your program, just use
- Code: Select all
-framework accelerate
You can also use both: Take the Accelerate Framework as BLAS library and Take Reference LAPACK for LAPACK library
The BLAS included in the Accelerate Framework will give you very good performance as it is an optimized and multi-threaded BLAS.Thread are controlled with the VECLIB_MAXIMUM_THREAD environment variable.
By default, the Accelerate Framework will enable threading.
And you will enjoy all the latest LAPACK features if you are using the Reference LAPACK.
To do so edit your make.inc and for BLASLIB put
BLASLIB= -framework accelerate
You will just need to do make after that, and all the LAPACK testing will be linked with the Mac OS/X Accelerate Framework

