附录:计算力的标准Linpack测试详细指南

云计算系统的一个重要作用是向用户提供计算力,评价一个系统的总体计算力的方法就是采用一个统一的测试标准作为评判,现在评判一个系统计算力的方法中最为知名的就是Linpack测试,世界最快500台巨型机系统的排名采用的就是这一标准。掌握Linpack测试技术对于在云计算时代评判一个云系统的计算力也有着重要意义。本附录将对Linpack测试技术作详细的介绍。

1.Linpack安装

在安装之前,我们需要做一些软件准备,相关的软件及下载地址如下。

(1)Linux平台,***稳定内核的Linux发行版***,可以选择Red hat, Centos等。

(2)MPICH2,这是个并行计算的软件,可以到http://www.mcs.anl.gov/research/projects/mp ich2/downloads/index.php?s=downloads下载***的源码包。

(3)Gotoblas,BLAS库(Basic Linear Algebra Subprograms)是执行向量和矩阵运算的子程序集合,这里我们选择公认性能***的Gotoblas,***版可到http://www.tacc.utexas.edu/tacc- projects/下载,需要注册。

安装方法和步骤如下。

(1)安装MPICH2,并配置好环境变量,本书前面已作介绍。

(2)进入Linux系统,建议使用root用户,在/root下建立linpack文件夹,解压下载的Gotoblas和HPL文件到linpack文件夹下,改名为Gotoblas和hpl。#tar xvf GotoBLAS-*.tar.gz

#mv GotoBLAS-*  ~/linpack/Gotoblas

#tar xvf  hpl-*.tar.gz

#mv hpl-*  ~/linpack/hpl

(3)安装Gotoblas。

进入Gotoblas文件夹,在终端下执行./ quickbuild.64bit(如果你是32位系统,则执行./ quickbuild.31bit)进行快速安装,当然,你也可以依据README里的介绍自定义安装。如果安装正常,在本目录下就会生成libgoto2.a和libgoto2.so两个文件。

(4)安装HPL。

进入hpl文件夹从setup文件夹下提取与自己平台相近的Make.文件,复制到hpl文件夹内,比如我们的平台为Intel xeon,所以就选择了Make.Linux_PII_FBLAS,它代表Linux操作系统、PII平台、采用FBLAS库。

编辑刚刚复制的文件,根据说明修改各个选项,使之符合自己的系统,比如我们系统的详细情况为,Intel xeon平台,mpich2安装目录为/usr/local/mipch2,hpl和gotoblas安装目录为/root/linpack,下面是我们的配置文件Make.Linux_xeon,对需要修改的部分我们做了注解,大家可以参考修改:# - shell --------------------------------------------------------------

# ----------------------------------------------------------------------

#

SHELL        = /bin/sh

#

CD           = cd

CP           = cp

LN_S        = ln -s

MKDIR       = mkdir

RM          = /bin/rm -f

TOUCH       = touch

#

# ----------------------------------------------------------------------

# - Platform identifier ------------------------------------------------

# ----------------------------------------------------------------------

#

ARCH         = Linux_xeon//设置平台类型

#

# ----------------------------------------------------------------------

# - HPL Directory Structure / HPL library ------------------------------

# ----------------------------------------------------------------------

#

TOPdir       = $(HOME)/linpack/hpl//设置测试软件的根目录

INCdir       = $(TOPdir)/include

BINdir       = $(TOPdir)/bin/$(ARCH)

LIBdir       = $(TOPdir)/lib/$(ARCH)

#

HPLlib       = $(LIBdir)/libhpl.a

#

# ----------------------------------------------------------------------

# - Message Passing library (MPI) --------------------------------------

# ----------------------------------------------------------------------

# MPinc tells the  C  compiler where to find the Message Passing library

# header files,  MPlib  is defined  to be the name of  the library to be

# used. The variable MPdir is only used for defining MPinc and MPlib.

#

MPdir        = /usr/local/mpich2//设置mpich的安装目录

MPinc        = -I$(MPdir)/include

MPlib        = $(MPdir)/lib/libmpich.a

#

# ----------------------------------------------------------------------

# - Linear Algebra library (BLAS or VSIPL) -----------------------------

# ----------------------------------------------------------------------

# LAinc tells the  C  compiler where to find the Linear Algebra  library

# header files,  LAlib  is defined  to be the name of  the library to be

# used. The variable LAdir is only used for defining LAinc and LAlib.

#

LAdir        = $(HOME)/linpack/GotoBLAS2//设置gotoblas的目录

LAinc        =

LAlib        = $(LAdir)/libgoto2.a $(LAdir)/libgoto2.so//加入库支持

#

# ----------------------------------------------------------------------

# - F77 / C interface --------------------------------------------------

# ----------------------------------------------------------------------

# You can skip this section  if and only if  you are not planning to use

# a  BLAS  library featuring a Fortran 77 interface.  Otherwise,  it  is

# necessary  to  fill out the  F2CDEFS  variable  with  the  appropriate

# options.  **One and only one**  option should be chosen in **each** of

# the 3 following categories:

#

# 1) name space (How C calls a Fortran 77 routine)

#

# -DAdd_              : all lower case and a suffixed underscore  (Suns,

#                       Intel, ...),                           [default]

# -DNoChange          : all lower case (IBM RS6000),

# -DUpCase            : all upper case (Cray),

# -DAdd__             : the FORTRAN compiler in use is f2c.

#

# 2) C and Fortran 77 integer mapping

#

# -DF77_INTEGER=int   : Fortran 77 INTEGER is a C int,         [default]

# -DF77_INTEGER=long  : Fortran 77 INTEGER is a C long,

# -DF77_INTEGER=short : Fortran 77 INTEGER is a C short.

#

# 3) Fortran 77 string handling

#

# -DStringSunStyle    : The string address is passed at the string loca-

#                           tion on the stack, and the string length is then

#                           passed as  an  F77_INTEGER  after  all  explicit

#                           stack arguments,                       [default]

# -DStringStructPtr   : The address  of  a  structure  is  passed  by  a

#                           Fortran 77  string,  and the structure is of the

#                           form: struct {char *cp; F77_INTEGER len;},

# -DStringStructVal   : A structure is passed by value for each  Fortran

#                           77 string,  and  the  structure is  of the form:

#                           struct {char *cp; F77_INTEGER len;},

# -DStringCrayStyle   : Special option for  Cray  machines,  which  uses

#                           Cray  fcd  (fortran  character  descriptor)  for

#                           interoperation.

#

F2CDEFS      = -DAdd__ -DF77_INTEGER=int-DStringSunStyle

#

# ----------------------------------------------------------------------

# - HPL includes / libraries / specifics -------------------------------

# ----------------------------------------------------------------------

#

HPL_INCLUDES = -I$(INCdir) -I$(INCdir)/$(ARCH) $(LAinc) $(MPinc)

HPL_LIBS     = $(HPLlib) $(LAlib) $(MPlib)

#

# - Compile time options -----------------------------------------------

#

# -DHPL_COPY_L           force the copy of the panel L before bcast;

# -DHPL_CALL_CBLAS       call the cblas interface;

# -DHPL_CALL_VSIPL       call the vsip  library;

# -DHPL_DETAILED_TIMING  enable detailed timers;

#

# By default HPL will:

#    *) not copy L before broadcast,

#    *) call the BLAS Fortran 77 interface,

#    *) not display detailed timing information.

#

HPL_OPTS     =

#

# ----------------------------------------------------------------------

#

HPL_DEFS     = $(F2CDEFS) $(HPL_OPTS) $(HPL_INCLUDES)

#

# ----------------------------------------------------------------------

# - Compilers / linkers - Optimization flags ---------------------------

# ----------------------------------------------------------------------

#

CC           = /usr/local/mpich2/bin/mpicc//设置gcc编译器为mpicc

CCNOOPT      = $(HPL_DEFS)

CCFLAGS      = $(HPL_DEFS) -fomit-frame-pointer -O3 -funroll-loops -W -Wall

#

# On some platforms,  it is necessary  to use the Fortran linker to find

# the Fortran internals used in the BLAS library.

#

LINKER       = /usr/local/mpich2/bin/mpif77//设置fortran编译器为mpif77

LINKFLAGS    = $(CCFLAGS)

#

ARCHIVER     = ar

ARFLAGS      = r

RANLIB       = echo

#

# -----------------------------/usr/local/mpich2/bin/mpicc---------------------

点赞 0

算力测试Linux,附录:计算力的标准Linpack测试详细指南(1)相关推荐

  1. 测试linux系统的程序员,日常测试Linux命令

    命令 cd 1. 如何进入上级目录 cd .. 2. 如何进入当前用户主目录 cd ~ 3. 如何进入上两级目录 cd ../.. 4. 进入当前目录命令 cd . 5. 如何进入目录 /usr/is ...

  2. linux下的can驱动测试,linux系统下can的驱动测试

    测试can需要ip,can-utils和libsocketcan库. 通过ip工具配置can,如速率,启用和禁用can等.不能用buildroot编译出来的ip,需要重新编译. 1. 编译ip: ip ...

  3. linux 异构 计算_在Linux(或异构)网络上共享计算机,第1部分

    linux 异构 计算 为了有效地测试和编写各种软件程序,我在本地网络上保留了相当多的计算机. 这些机器运行各种操作系统,并使用各种硬件配置. 有时我正在评估各种平台上的工具: 其他时候我正在测试和调 ...

  4. 【纯音听力测试】基于MATLAB的纯音听力测试系统

    1.软件版本 matlab2017b 2.系统原理 语音是人类进行交流沟通的最基本方式,而人类的耳朵则是接收语音信号的唯一器官,但是对于听力障碍患者来讲,由于无法正常接收来自他人的语音信号,其无法进行 ...

  5. Linux下Linpack测试CPU性能的相关库、环境搭建部署

    1.简介: Linpack是线性系统软件包(Linear system package) 的缩写,是国际上使用最广泛的测试高性能计算机系统浮点性能的基准测试. 2.相关条件: 编译器:支持C和Fort ...

  6. linux+gps测试流程图,GPS测试标准与测试项目简介

    正 文 GPS测试标准与测试项目简介(2007/4/5 17:31) 国际辅助全球定位系统标准GPS测试标准有: UMTS / GSM: 3GPP TS 25.171 , 3GPP2 C.S0036- ...

  7. Linpack测试简介

    一.概述 Linpack是国际上使用最广泛的测试高性能计算机系统浮点性能的基准测试.通过对高性能计算机采用高斯消元法求解一元 N次稠密线性代数方程组的测试,评价高性能计算机的浮点计算性能.Linpac ...

  8. 曙光5000a超级计算机性能,曙光5000A 超级计算机的Linpack 测试

    曙光5000A 超级计算机的Linpack 测试 10 <高性能计算发展与应用> 2009年第三期 总第二十八期 曙光5000A*超级计算机的Linpack测试 张文力 张攀勇 霍志刚 中 ...

  9. 电磁兼容(EMC)的标准与测试内容

    在国际范围上,电磁兼容标准的制定已经有了70多年的发展历程,最早为了保护无线电通信和广播,国际无线电干扰特别委员会(CISPR)对各种用电设备和系统提出了相关的电磁干扰发射限值和测量方法.到了20世纪 ...

  10. 开箱啦~带你玩转飞凌高算力“魔盒”——AI边缘计算终端FCU3001

    随着人工智能高速发展,逐渐向人们的生活场景渗透,其对数据计算量要求越来越庞大,处理速度要求越来越快,硬件性能要求也越来越高.针对此需求,飞凌嵌入式做了面向AI边缘系统的最新终端:高算力"魔盒 ...

最新文章

  1. 文献记录(part9)--A biclustering-based method for market segmentation using customer pain points
  2. Gridview SummaryItem 格式化数字
  3. android studio中讯飞sdk“组件未安装.(错误码:21002)”的解决办法
  4. php 钉钉 免登,免登的正确使用方式
  5. Introducing Blackle, the energy saving search
  6. 《The Pursuit of Happyness / 当幸福来敲门》(2006)
  7. selenium webdriver实战宝典 pdf_Selenium+webdriver爬虫技术实战之沃运维报表提取
  8. 关于Vivado Simulator-ERROR: Cannot find design unit work. in library work located at xsim.dir /work
  9. Snake模型綜合介紹
  10. ceph 代码分析 读_Ceph代码分析
  11. Spring Boot整合MyBatis框架(XML文件版)
  12. 15、NC导入excel
  13. matlab 改变坐标轴间距,matlab坐标轴刻度间距
  14. vb.net获取汉字串拼音首字母
  15. 原生js和jQuery优缺点对比
  16. linux udev 激活usb网卡,linux – 用于USB设备的udev规则并忽略其他设备
  17. 吃透Java IO:字节流、字符流、缓冲流
  18. 如何压缩图片jpg格式?一分钟学会jpg图片压缩
  19. 1、j-link报The connected j-link is defective. proper operation cannot be guarantee
  20. win10开始菜单 磁贴栏 打不开 无反应 闪退 个人解决方法

热门文章

  1. 浅谈大数据的过去、现在和未来
  2. UG二次开发GRIP过滤
  3. 汽车之家自动发帖回帖机器人
  4. 金山词霸使用牛津词典取词的笨方法
  5. 独立站的SEO搜索引擎优化
  6. 上传图片,使用很简单的办法上传图片
  7. 小杜机器人线下店_百度AI小度机器人IP营销
  8. 若邻网络结盟职友集,共创人脉网络与职位搜索结合的求职新模式
  9. IIS6 伪静态 IIS文件类型映射配置方法 【图解】
  10. 理论力学知识要点归纳(三)