Linpack安装

主要是根据另一位博主的文章做的,中间遇到的错误和解决记录一下

安装步骤是照着 傻瓜式Linpack安装(Mpich+Openblas+Hpl)CR kongfu_cat 来的,因为觉得安装openblas和mpich比别的方法要简单,直接apt-get就行...

然后出现了错误,在make的时候,这样报错:

make[2]: /usr/bin/mpif77): Command not found
Makefile:76: recipe for target 'dexe.grd' failed
make[2]: *** [dexe.grd] Error 127
make[2]: 离开目录“/home/u/hpl/hpl-2.3/testing/ptest/Linux_Intel_Nehalem”
Make.top:64: recipe for target 'build_tst' failed
make[1]: *** [build_tst] Error 2
make[1]: 离开目录“/home/u/hpl/hpl-2.3”
Makefile:72: recipe for target 'build' failed
make: *** [build] Error 2
 

中间意识到自己的cpu架构或许不一样,用命令cat /proc/cpuinfo查了一下是intel core,就把里面路径的 Nehalem改成了Core。

 sudo make arch=Linux_Intel_Core还是报错,但是有新的报错了:

gfortran: error: /usr/lib/openblas-base/libblas.a: 没有那个文件或目录
gfortran: error: /usr/lib/openblas-base/libblas.so: 没有那个文件或目录

于是打开文件夹发现lib下根本就没有openblas-base,于是自己跑去找openblas在哪,最后找到了:(快瞎了真的)

root@u-VirtualBox:/usr/lib/x86_64-linux-gnu/openblas# ls *
libblas.a  libblas.so  libblas.so.3  liblapack.a  liblapack.so  liblapack.so.3


然后就替换了make文件里面关于openblas的路径:

LAdir        = /usr/lib/x86_64-linux-gnu/openblas
LAinc        =
LAlib        = $(LAdir)/libblas.a $(LAdir)/libblas.so

再重新make一遍最后就能看见hpl.dat和xhpl啦。

 

你可能感兴趣的:(计算机系统设计)