linpack测试软件安装.docx

上传人:b****7 文档编号:10269786 上传时间:2023-02-09 格式:DOCX 页数:12 大小:19.48KB
下载 相关 举报
linpack测试软件安装.docx_第1页
第1页 / 共12页
linpack测试软件安装.docx_第2页
第2页 / 共12页
linpack测试软件安装.docx_第3页
第3页 / 共12页
linpack测试软件安装.docx_第4页
第4页 / 共12页
linpack测试软件安装.docx_第5页
第5页 / 共12页
点击查看更多>>
下载资源
资源描述

linpack测试软件安装.docx

《linpack测试软件安装.docx》由会员分享,可在线阅读,更多相关《linpack测试软件安装.docx(12页珍藏版)》请在冰豆网上搜索。

linpack测试软件安装.docx

linpack测试软件安装

Linpack安装过程

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

(1)Linux平台,最新稳定内核的Linux发行版最佳,可以选择Redhat,Centos等。

(2)MPICH2,这是个并行计算的软件,可以到

http:

//www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?

s=downloads

下载最新的源码包。

(3)Gotoblas,BLAS库(BasicLinearAlgebraSubprograms)是执行向量和矩阵运算的子程序集合,这里我们选择公认性能最好的Gotoblas,最新版可到http:

//www.tacc.utexas.edu/tacc-projects/下载,需要注册。

(4)HPL,linpack测试的软件,可在lib.org/benchmark/hpl/下载最新版本。

一、Mpich2的安装过程

1、解压软件包

tarzxvfmpich2-1.1.1p1.tar.gzcdmpich2-1.1.1p1

指定目录编译

./configure--prefix=/root/linpack/mpi--with-pm=smpd--enable-f77

make

makeinstall

2、配置环境变量

vim~/.bashrc

PATH="$PATH:

/usr/local/mpi/bin"

source.bashrc3、

测试环境变量

whichsmpd

whichmpicc

whichmpiexec

whichmpirun

下面这两部据说在测试时需要输入密码,但是不知道为什么这个密码没有生效。

4、修改/root/.mpd.conf

secretword=myword

chmod600/root/.mpd.conf

5、修改/etc/mpd.conf

secretword=myword

chmod600/etc/mpd.conf

6、测试mpich2的进程smpd是否启动

[root@LG01linpack]#whichsmpd

/root/linpack/mpi/bin/smpd

[root@LG01linpack]#smpd–s

[root@LG01linpack]#ps-ef|grepsmpd

测试mpi是否启动

[root@LG01linpack]#mpiexec-n1hostname

二、Gotoblas,BLAS库(BasicLinearAlgebraSubprograms)是执行向量和矩阵运算的子程序集合,这里我们选择公认性能最好的GotoblasGotoBLAS2-1.13_bsd.tar.gz

#tar-xzvfGotoBLAS2-1.13_bsd.tar.gz

#cdGotoBLAS2

#viMakefile.rule

改四个地方,标注为(#modified)的行:

#

#Beginningofuserconfiguration

#

#Thislibrary'sversion

VERSION=1.13

#Youcanspecifythetargetarchitecture,otherwiseit's

#automaticallydetected.

TARGET=PENRYNNEHALEM

#Ifyouwanttosupportmultiplearchitectureinonebinary

#DYNAMIC_ARCH=1

#Ccompilerincludingbinarytype(32bit/64bit).Defaultisgcc.

#Don'tuseIntelCompilerorPGI,itwon'tgeneraterightcodesasIexpect.

CC=gcc#modified(设置C编译器)

#Fortrancompiler.Defaultisg77.

FC=gfortran#modified(设置fortran编译器)

#Evenyoucanspecifycrosscompiler

#CC=x86_64-w64-mingw32-gcc

#FC=x86_64-w64-mingw32-gfortran

#Ifyouneed32bitbinary,defineBINARY=32,otherwisedefineBINARY=64

BINARY=64#modified(64为linux操作系统)

#AboutthreadedBLAS.Itwillbeautomaticallydetectedifyoudon't

#specifyit.

#Forforcesettingforsinglethreaded,specifyUSE_THREAD=0

#Forforcesettingformultithreaded,specifyUSE_THREAD=1

#USE_THREAD=0

#Ifyou'regoingtousethislibrarywithOpenMP,pleasecommentitin.

#USE_OPENMP=1

#Youcandefinemaximumnumberofthreads.Basicallyitshouldbe

#lessthanactualnumberofcores.Ifyoudon'tspecifyone,it's

#automaticallydetectedbythethescript.

NUM_THREADS=1#modified(单线程运行,可以根据需要配成多线程)

#Ifyoudon'tneedCBLASinterface,pleasecommentitin.

#NO_CBLAS=1

#IfyouwanttouselegacythreadedLevel3implementation.

#USE_SIMPLE_THREADED_LEVEL3=1

#Ifyouwanttodrivewhole64bitregionbyBLAS.NotallFortran

#compilersupportsthis.It'ssafetokeepcommentitoutifyou

#arenotsure(equivalentto"-i8"option).

#INTERFACE64=1

#Unfortunatelymostofkernelwon'tgiveushighqualitybuffer.

#BLAStriestofindthebestregionbeforeenteringmainfunction,

#butitwillconsumetime.Ifyoudon'tlikeit,youcandisableone.

#NO_WARMUP=1

#IfyouwanttodisableCPU/MemoryaffinityonLinux.

#NO_AFFINITY=1

#IfyouwouldliketoknowminuteperformancereportofGotoBLAS.

#FUNCTION_PROFILE=1

#SupportforIEEEquadprecision(it's*real*REAL*16)(undertesting)

#QUAD_PRECISION=1

#TheadsarestillworkingforawhileafterfinishingBLASoperation

#toreducethreadactivate/deactivateoverhead.Youcandetermine

#timeouttoimproveperformance.Thisnumbershouldbefrom4to30

#whichcorrespondsto(1<

#threadwillberunningfor(1<<26)cycles(about25mson3.0GHz

#system).AlsoyoucancontrolthismumberbyGOTO_THREAD_TIMEOUT

#CCOMMON_OPT+=-DTHREAD_TIMEOUT=26

#Usingspecialdevicedriverformappingphysicallycontigousmemory

#totheuserspace.Ifbigphysareaisenabled,itwilluseit.

#DEVICEDRIVER_ALLOCATION=1

#IfyouneedtosynchronizeFPCSRbetweenthreads(forx86/x86_64only).

#CONSISTENT_FPCSR=1

#IfyouneedsantycheckbycomparingreferenceBLAS.It'llbevery

#slow(Notimplementedyet).

#SANITY_CHECK=1

#CommonOptimizationFlag;-O2isenough.

COMMON_OPT+=-O2

#Profilingflags

COMMON_PROF=-pg

#

#Endofuserconfiguration

#

进入目录执行:

./quickbuild.64bit

若出现如下:

../kernel/x86_64/gemm_ncopy_4.S:

192:

Error:

undefinedsymbol`RPREFETCHSIZE'inoperation../kernel/x86_64/gemm_ncopy_4.S:

193:

Error:

undefinedsymbol`RPREFETCHSIZE'inoperation../kernel/x86_64/gemm_ncopy_4.S:

194:

Error:

undefinedsymbol`RPREFETCHSIZE'inoperation../kernel/x86_64/gemm_ncopy_4.S:

195:

Error:

undefinedsymbol`RPREFETCHSIZE'inoperation

则执行:

gmakeclean

makeBINARY=64TARGET=NEHALEM

出现以上错误的原因为,cpu太新,配置文件不识别,需要重新指定一下CPU类型

三、安装HPL。

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

tarxzvfhpl-2.0.tar.gz

viMake.Linux_PII_FBLAS

#OFTHISSOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGE.

#######################################################################

#

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

#-shell--------------------------------------------------------------

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

#

SHELL=/bin/sh

#

CD=cd

CP=cp

LN_S=ln-s

MKDIR=mkdir

RM=/bin/rm-f

TOUCH=touch

#

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

#-Platformidentifier------------------------------------------------

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

#

ARCH=Linux_PII_FBLAS

#

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

#-HPLDirectoryStructure/HPLlibrary------------------------------

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

#

TOPdir=/root/linpack/hpl

INCdir=$(TOPdir)/include

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

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

#

HPLlib=$(LIBdir)/libhpl.a

#

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

#-MessagePassinglibrary(MPI)--------------------------------------

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

#MPinctellstheCcompilerwheretofindtheMessagePassinglibrary

#headerfiles,MPlibisdefinedtobethenameofthelibrarytobe

#used.ThevariableMPdirisonlyusedfordefiningMPincandMPlib.

#

MPdir=/root/linpack/mpi

MPinc=-I$(MPdir)/include

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

#

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

#-LinearAlgebralibrary(BLASorVSIPL)-----------------------------

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

#LAinctellstheCcompilerwheretofindtheLinearAlgebralibrary

#headerfiles,LAlibisdefinedtobethenameofthelibrarytobe

#used.ThevariableLAdirisonlyusedfordefiningLAincandLAlib.

#

LAdir=/root/linpack/GotoBLAS2

LAinc=

LAlib=$(LAdir)/libgoto2.a$(LAdir)/libgoto2.so

#

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

#-F77/Cinterface--------------------------------------------------

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

#Youcanskipthissectionifandonlyifyouarenotplanningtouse

#aBLASlibraryfeaturingaFortran77interface.Otherwise,itis

#necessarytofillouttheF2CDEFSvariablewiththeappropriate

#options.**Oneandonlyone**optionshouldbechosenin**each**of

#the3followingcategories:

#

#1)namespace(HowCcallsaFortran77routine)

#

#-DAdd_:

alllowercaseandasuffixedunderscore(Suns,

#Intel,...),[default]

#-DNoChange:

alllowercase(IBMRS6000),

#-DUpCase:

alluppercase(Cray),

#-DAdd__:

theFORTRANcompilerinuseisf2c.

#

#2)CandFortran77integermapping

#

#-DF77_INTEGER=int:

Fortran77INTEGERisaCint,[default]

#-DF77_INTEGER=long:

Fortran77INTEGERisaClong,

#-DF77_INTEGER=short:

Fortran77INTEGERisaCshort.

#

#3)Fortran77stringhandling

#

#-DStringSunStyle:

Thestringaddressispassedatthestringloca-

#tiononthestack,andthestringlengthisthen

#passedasanF77_INTEGERafterallexplicit

#stackarguments,[default]

#-DStringStructPtr:

Theaddressofastructureispassedbya

#Fortran77string,andthestructureisofthe

#form:

struct{char*cp;F77_INTEGERlen;},

#-DStringStructVal:

AstructureispassedbyvalueforeachFortran

#77string,andthestructureisoftheform:

#struct{char*cp;F77_INTEGERlen;},

#-DStringCrayStyle:

SpecialoptionforCraymachines,whichuses

#Crayfcd(fortrancharacterdescriptor)for

#interoperation.

#

F2CDEFS=-DAdd__-DF77_INTEGER=int-DStringSunStyle

#

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

#-HPLincludes/libraries/specifics-------------------------------

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

#

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

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

#

#-Compiletimeoptions-----------------------------------------------

#

#-DHPL_COPY_LforcethecopyofthepanelLbeforebcast;

#-DHPL_CALL_CBLAScallthecblasinterface;

#-DHPL_CALL_VSIPLcallthevsiplibrary;

#-DHPL_DETAILED_TIMINGenabledetailedtimers;

#

#BydefaultHPLwill:

#*)notcopyLbeforebroadcast,

#*)calltheBLASFortran77interface,

#*)notdisplaydetailedtiminginformation.

#

HPL_OPTS=

#

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

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > PPT模板 > 商务科技

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1