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. Gulp工具常用插件

    gulp-uglify(js压缩) gulp-uglify安装 // npm install --save-dev gulp-uglify 已过时 npm install --save-dev jsh ...

  2. MyEclipse快捷键大全,很实用

    Eclipse本身很快的,但是加上了myeclipse后,就狂占内存,而且速度狂慢,那如何让Eclipse拖着myeclipse狂飚呢?这里提供一个: 技巧:取消自动validation  valid ...

  3. 栅格那点儿事(四A)---栅格的显示与渲染

    栅格的显示与渲染 通过前两章的学习,应该对栅格这个东西不那么陌生了.在这一个部分,我们来看看如何展示出栅格数据最美丽的地方,在ArcGIS中栅格的显示与渲染.在进入细节之前,先来看看在ArcGIS中都 ...

  4. selnium截屏操作

    这个算是难找的.C# ITakeScreenShot 接口来实现截图.不是ScreenShot这个坑弄了很长时间啊. var folderLocation = Environment.CurrentD ...

  5. Excel操作之VLOOKUP函数

    1.作用 VLOOKUP函数是Excel中的一个纵向查找函数,它与LOOKUP函数和HLOOKUP函数属于一类函数,在工作中都有广泛应用,例如可以用来核对数据,多个表格之间快速导入数据等函数功能.功能 ...

  6. 笨办法学Python(二十)

    习题 20: 函数和文件 回忆一下函数的要点,然后一边做这节练习,一边注意一下函数和文件是如何在一起协作发挥作用的. from sys import argv script, input_file = ...

  7. Python 类的高级属性(可选)

    1.slots实例:限制类的实例有合法的属性集,只有__slots__属性列表中的属性才可能成为实例属性. 对象的实例通常没有一个属性字典,可以在__slots__列表中包含一个属性字典__dict_ ...

  8. InnoDB多版本(MVCC)实现简要分析

    转载自:http://hedengcheng.com/?p=148 基本知识 假设对于多版本(MVCC)的基础知识,有所了解.InnoDB为了实现多版本的一致读,采用的是基于回滚段的协议. 行结构 I ...

  9. 合格PHP工程师的知识结构 (转载)

    工作有些年头了,从学校开始自学ASP,偶然因为PHP一个功能爱上它(ASP上传代码要写好多,PHP基本几行就搞定了),从此走上了 ”拍黄片“ 之路.结合这几年的工作经验,说说我对PHP工程师知识结构的 ...

  10. p2597 灾难

    我的思路 代码: #include<cstdio> #include<iostream> #include<algorithm> #include<vecto ...