Run linpack in server

1.Get computer nodal information

lscpu

 dmidecode -t memory | head -45 | tail -24

2.Experimental softwares:mpich-3.2.1 + GotoBLAS2-1.13 + hpl-2.2

3.Install software

1.Install mpich

1.Solve dependency

  sudo yum install gcc
sudo yum install gcc-gfortran

2.Download mpich3

  cd /home
yum install wget
wget http://www.mpich.org/static/downloads/3.2.1/mpich-3.2.1.tar.gz

3.Installing

  mkdir /home/linpack
tar -zxvf mpich-3.2.1.tar.gz
mv mpich-3.2.1 /home/linpack
mkdir /home/mpich-install
cd /home/linpack/mpich-3.2.1
./configure --prefix=/home/mpich-install 2>&1 | tee c.txt

when run --- ./configure --prefix=/home/mpich-install/ 2>&1 | tee c.txt




error:configure: error: Aborting because C++ compiler does not work.


If you do not need a C++ compiler, configure with --disable-cxx


solve:yum install gcc-c++

  ./configure --prefix=/home/mpich-install 2>&1 | tee c.txt
make 2>&1 | tee m.txt
make install 2>&1 | tee m.txt
PATH=/home/[USERNAME]/mpich-install/bin:$PATH ; export PATH
which mpicc
which mpiexec

4.test if install success

  cd /home/linpack/mpich-3.2.1/examples
mpiexec -n 5 ./cpi

when run --- mpiexec -n 5 ./cpi


error:Fatal error in MPI_Init: Other MPI error, error stack: gethostbyname failed, cu001.novalocal (errno 1)


solve:vim /etc/hosts


add "127.0.0.1 cu001.novalocal" to /etc/hosts

 mpiexec -n 5 ./cpi

2.Install GotoBLAS2

1.Download GotoBLAS2-1.13

cd /home
wget https://www.tacc.utexas.edu/documents/1084364/1087496/GotoBLAS2-1.13.tar.gz/b58aeb8c-9d8d-4ec2-b5f1-5a5843b4d47b
mv b58aeb8c-9d8d-4ec2-b5f1-5a5843b4d47b GotoBLAS2-1.13.tar.gz
tar -zxvf GotoBLAS2-1.13.tar.gz
mv GotoBLAS2 /home/linpack
cd /home/linpack/GotoBLAS2

error:In GotoBLAS2 directory, f_check file'source have error.


solve:Change 298th row of f_check file to "print MAKEFILE "FEXTRALIB=$linker_L -lgfortran -lm -lquadmath -lm $linker_a\n";"

make BINARY=64 TARGET=NEHALEM

when run --- make BINARY=64 TARGET=NEHALEM

error:/bin/sh:行2: patch: 未找到命令

make: *** [lapack-3.1.1] 错误 127o

solve: yum install patch

 make BINARY=64 TARGET=NEHALEM

3.Install hpl

1.download hpl

cd /home/
wget http://www.netlib.org/benchmark/hpl/hpl-2.2.tar.gz
tar -zxvf hpl-2.2.tar.gz
mv hpl-2.2 /home/linpack
cd /home/linpack/hpl-2.2
cp ./setup/Make.Linux_PII_FBLAS ./
vim Make.Linux_PII_FBLAS

modify Make.Linux_PII_FBLAS file

  TOPdir       = /home/linpack/hpl-2.2 ##where is hpl-2.2
MPdir = /home/mpich-install ##where is mpich installed directory
MPlib = $(MPdir)/lib/libmpi.so
LAdir = /home/linpack/GotoBLAS2 ##where is GotoBLAS2
LAlib = $(LAdir)/libgoto2.a $(LAdir)/libgoto2.so
CC = /home/mpich-install/bin/mpicc ##where is mpicc
LINKER = /home/mpich-install/bin/mpif77 ##where is mpif77

when run ---make arch=Linux_PII_FBLAS

error:6.//usr/lib64/libpthread.so.0: error adding symbols: DSO missing from comman

solve:modify Make.Linux_PII_FBLAS

CCFLAGS = $(HPL_DEFS) -fomit-frame-pointer -O3 -funroll-loops -W -Wall -fuse-ld=gold -pthread -lm

  make  arch=Linux_PII_FBLAS

4.Runing

cd  /home/linpack/hpl-2.2/bin/Linux_PII_FBLAS/
mpiexec -np 4 ./xhpl > /home/test1

5.Result

linpack_2的更多相关文章

随机推荐

  1. The ninth day

    a good egg 可不是好的鸡蛋的意思哦 它等同于 a good person 大好人的意思 eg: We all think he is a good egg. 我们都认为他是一个好人. I t ...

  2. Xposed截获 Android手机QQ密码

    0x00 前言 Xposed框架是一款修改系统框架服务的软件,通过它许多功能强大的模块得以实现,且不冲突地同时运作,自从Xposed框架发布以来,安卓手机的可玩性日益激增,最近很闲很蛋疼,研究下截获A ...

  3. 回归JDK源代码(2)Enumeration<E>接口

    现在的Java程序员习惯使用Iterator<E>接口或者增强for循环来遍历集合.如果回到JDK 1.0,Enumeration接口则是遍历向量.哈希表的不二之选.本节就解读和翻译一下E ...

  4. 如何在windows下安装配置pyspark notebook

    第一步:安装anaconda anaconda自带一系列科学计算包 下载链接:http://pan.baidu.com/s/1b4jWlg 密码:fqq3 接着配置环境变量:如我安装在D盘下   试一 ...

  5. MySql 8.0.11 在win10下的zip非安装配置

     在win10使用mysql8.0.11的zip包进行配置时,搜到的教程很多坑,特此总结成功配置的方法. 1.下载非安装的zip包   mysql 8.0.11 64位 2.解压zip包 将下载的zi ...

  6. SINAMICS S120 Parking axis设置,安转拆除或屏蔽电机

    1) P897 Parking axis selection 此参数可以连接到周期通讯的报文中(PZD) 2) 标准报文111中,已经连接此参数

  7. May 8th 2017 Week 19th Monday

    Art lies in concealing art. 隐而不露即艺术. Sometimes, concealing is much more seductive than totally naked ...

  8. 【js基础修炼之路】— 我理解的原型链

    提起原型链,大家并不陌生,但是对于新人来说一提到原型方面的东西就会比较懵.在我自一次面试的时候,面试官也给我提了这样的问题,当时就按照我的理解说了一些,但是很肤浅,在此我希望给刚入门的前端小伙伴聊一下 ...

  9. 504. Inverted Index (Map Reduce) lintcode

    https://www.lintcode.com/problem/inverted-index-map-reduce/description -- decription of the map redu ...

  10. Selenium入门10 弹出框的处理 switch_to.alert

      三种弹出框alert(一个按钮),confirm(两个确认,取消),prompt(两个按钮+输入框). 切换到弹框: switch_to_alert()  新版的selenium用:  brows ...