Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing BLAS on a mac OS X Yosemite

Tags:

macos

lapack

blas

I'm trying to Install BLAS on my Mac, but every time I run make I get this error (shown below the link). I was trying to follow the instructions on this website:

gfortran -O3 -c isamax.f -o isamax.o
make: gfortran: No such file or directory
make: *** [isamax.o] Error 1

I have no idea what this means or how to fix it so any help would be appreciated. Also I'm trying to install CBLAS and LAPACK so any tips/instructions for that would be nice if you know of a good source...Everything I've found so far is pretty confusing. Also I tried to install ATLAS but it kept not working.

like image 618
Bella Pagano Avatar asked Oct 31 '22 01:10

Bella Pagano


2 Answers

This error is caused because gfortran is apparently not installed, so you'll need to download an installer package for OS X Yosemite 10.10 and install it:

gfortran 5.1 or gfortran 4.9.2 (info)

Once installed run the make command in the BLAS directory.

like image 183
l'L'l Avatar answered Nov 15 '22 05:11

l'L'l


How to install Blas/Lapack: don't.

These libraries are the textbook example of enormous performance differences between simple and optimized code. And by optimizations I don't mean compiler: I mean algorithm transformations.

So you definitely do not want to download the "reference blas/lapack" from netlib or another location. If your system doesn't already come with an optimized version (Mac OS X does), see if you can get Intel's MKL library (free for students on Linux?), and otherwise get BLIS or OpenBlas or Atlas which are all open source optimized implementations.

like image 42
Victor Eijkhout Avatar answered Nov 15 '22 05:11

Victor Eijkhout