三、安装HPL。

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

tar xzvf hpl-2.0.tar.gz

vi Make. Linux_PII_FBLAS

#  OF THISSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

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

#

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

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

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

#

SHELL        =/bin/sh

#

CD           =cd

CP           =cp

LN_S         =ln -s

MKDIR        =mkdir

RM           =/bin/rm -f

TOUCH        =touch

#

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

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

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

#

ARCH         =Linux_PII_FBLAS

#

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

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

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

#

TOPdir= /root/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 theMessage Passing library

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

# used. The variable MPdir is only used for definingMPinc and MPlib.

#

MPdir= /root/linpack/mpi

MPinc        =-I$(MPdir)/include

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

#

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

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

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

# LAinc tells the C  compiler where to find theLinear 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 LAincand LAlib.

#

LAdir= /root/linpack/GotoBLAS2

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 77interface.  Otherwise,  it  is

# necessary to  fill out the  F2CDEFS variable  with  the appropriate

# options. **One and only one**  optionshould 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 Cshort.

#

# 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 beforebcast;

# -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 copyL before broadcast,

#    *) call theBLAS Fortran 77 interface,

#    *) notdisplay detailed timing information.

#

HPL_OPTS     =

#

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

#

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

#

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

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

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

#

CC= /root/linpack/mpi/bin/mpicc

CCNOOPT      =$(HPL_DEFS)

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

#

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

# the Fortran internals used in the BLAS library.

#

LINKER= /root/linpack/mpi/bin/mpif77

LINKFLAGS    =$(CCFLAGS)

#

ARCHIVER     =ar

ARFLAGS      = r

RANLIB       =echo

#

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

make arch=Linux_pII_FBLAS

进入/linpack/hpl-2.0/bin/Linux_PII_FBLAS,可以看到hpl.dat和xhpl说明安装成功

linux 安装 blas,Linux下Linpack安装过程相关推荐

  1. 【安装】Windows下Oracle安装图解----oracle-win-64-11g 详细安装步骤

    [安装]Windows下Oracle安装图解----oracle-win-64-11g 详细安装步骤 一. Oracle 下载 官方下地址 http://www.oracle.com/technetw ...

  2. 红旗linux 装xp,XP下硬盘安装红旗LINUX

    XP下硬盘安装红旗LINUX---转自红旗社区2008-12-02 23:41拒绝黑屏-红旗Linux硬盘安装简单教程 作者: topeak 初级会员(IPLogged) 日期: 2008-10-23 ...

  3. linux编译blas,Linux系统CentOS 6.8上yum安装BLAS库

    Linux系统CentOS 6.8上yum安装BLAS库 BLAS是一个广泛应用到科学计算软件上面的库文件,在CentOS的软件库中已经有该软件的软件包,我们可以直接使用yum来安装. 1.1.查询C ...

  4. mysql linux centos 安装_Linux centos 下在线安装mysql

    1,查看是否有安装过mysql: #rpm -qa | grep mysql 如果无结果返回,说明没有安装Mysql,可以全新安装. 2,查看在线服务器提供的Mysql相关的安装包有哪些: #yum ...

  5. linux mysql8配置文件_Linux下 MySQL8安装教程

    之前我们介绍了 Windows下的MySQL8安装教程,那么Linux下该如何安装呢?本文以CentOS 7 为例,一步一步教你如何在Linux下安装MySQL-8.0.18 文章目录 下载MySQL ...

  6. 红帽子linux硬盘安装教程,XP下硬盘安装RedHat Enterprise Linux 5.5图文教程

    前言:现大已经是大二了,由于学习的需要,想安装 RedHat linux enterprise 学习一下,我整理一下后用06年买的老机成功安装了,下面就是我整理出来的教程(机器环境配置因人而异). 正 ...

  7. ylmf linux y1.15(ubuntu),Ylmf Linux Y1.15 XP下硬盘安装

    硬盘安装适用于没有光驱的朋友,也适用于嫌光驱安装慢的人 1,把GRUB4DOS中grldr文件放到C盘根目录.上传Ubuntu9.04生成的wubildr,安装更兼容, 2,在C盘根目录新建一个men ...

  8. [Linux]Centos 6.3 下源代码安装gcc 4.8.2/4.9.2

    CentOS6.3 自带的gcc版本为4.4.7 1.首先把旧的gcc相关的编译工具安装好 yum install gcc gcc-c++ glibc-static -y 2.下载gcc 4.8.2 ...

  9. centos得mysql安装教程_Centos下Mysql安装图文教程_MySQL

    Mysql是比较常用的数据库,日常开发中也是采用地比较多.工欲善其事必先利其器,本文特地来讲解下如何在centos(其他linux发行版类似)下安装Mysql.首先准备的材料:Mysql,我这里采用的 ...

  10. 02_Weblogic课程之安装篇:RedHat下JDK安装,RedHat下Weblogic安装,目录结构,环境变量设置

     1  Weblogic的安装方式有三种: 一.GUI方式安装    (java –jar wls1035_generic.jar [-mode=gui])这是默认的 二.Console方式安装  ...

最新文章

  1. SQL优化:使用explain
  2. 基于Android平台的多分辨率解决方案[图]
  3. 不可错过的CMS学习笔记
  4. C++实践参考——OOP版电子词典
  5. 现代的缓存设计方案:Window-TinyLFU
  6. 程序员应具备的职业素质
  7. 2019.04.13 - 19:34
  8. ORA-02290:违反检查约束条件(sys_c0011321)什么原因
  9. 配置 php_零基础建站如何配置PHP运行环境 几种服务器环境配置的选择和方法
  10. visio2010安装
  11. 一卡通管理系统服务器,一卡通管理系统
  12. 常见的Java框架有哪些?
  13. 爬取企业信息-企业信用信息查询系统-天眼查爬虫
  14. itext实现横向pdf打印
  15. 请珍惜你身边那个默默爱你的人
  16. 想要职场安全感?那就请你别停止成长
  17. spreadtrum 6600L 开机init流程
  18. ecshop 简单修改 可做淘宝客网站
  19. 虚拟机已死,容器才是未来?
  20. hdu 3567(八码数 + 双向bfs)

热门文章

  1. 第一篇 ME909S-821开始使用
  2. 第1关:MapReduce综合应用案例 — 电信数据清洗
  3. 基于机器学习进行销售预测分析
  4. HarmonyOS:Preferences的封装使用与避坑
  5. PCI驱动框架简单分析
  6. excel与python生成正态分布的数据,实践
  7. python columns函数_pandas 对 column 使用函数
  8. 未转变者服务器关雨指令,Unturned未转变者3.21版本物品ID代码汇总
  9. 全球与中国莨菪碱市场深度研究分析报告
  10. 「网络流 24 题」火星探险问题。