简体   繁体   English

在 mac OS X Yosemite 上安装 BLAS

[英]Installing BLAS on a mac OS X Yosemite

I'm trying to Install BLAS on my Mac, but every time I run make I get this error (shown below the link).我正在尝试在 Mac 上安装 BLAS,但每次运行 make 时都会出现此错误(显示在链接下方)。 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.此外,我正在尝试安装 CBLAS 和 LAPACK,因此如果您知道一个好的来源,那么任何提示/说明都会很好......到目前为止我发现的一切都非常令人困惑。 Also I tried to install ATLAS but it kept not working.我也尝试安装 ATLAS,但它一直无法正常工作。

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 ,因此您需要下载OS X Yosemite 10.10的安装程序包并进行安装:

gfortran 5.1 or gfortran 4.9.2 ( info ) gfortran 5.1gfortran 4.9.2info

Once installed run the make command in the BLAS directory. 安装完成后,在BLAS目录中运行make命令。

How to install Blas/Lapack: don't. 如何安装Blas / Lapack:不需要。

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. 因此,您绝对不希望从netlib或其他位置下载“参考blas / lapack”。 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. 如果您的系统尚未提供优化版本(Mac OS X尚未提供),请查看您是否可以获得英特尔的MKL库(Linux上的学生免费吗?),否则是否获得均经过开源优化的BLIS或OpenBlas或Atlas实现。

您可以免费下载MKL软件包以供个人和商业使用,请访问以下链接: https : //software.seek.intel.com/performance-libraries

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM