linux 安装 blas,Linux下Linpack安装过程
三、安装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安装过程相关推荐
- 【安装】Windows下Oracle安装图解----oracle-win-64-11g 详细安装步骤
[安装]Windows下Oracle安装图解----oracle-win-64-11g 详细安装步骤 一. Oracle 下载 官方下地址 http://www.oracle.com/technetw ...
- 红旗linux 装xp,XP下硬盘安装红旗LINUX
XP下硬盘安装红旗LINUX---转自红旗社区2008-12-02 23:41拒绝黑屏-红旗Linux硬盘安装简单教程 作者: topeak 初级会员(IPLogged) 日期: 2008-10-23 ...
- linux编译blas,Linux系统CentOS 6.8上yum安装BLAS库
Linux系统CentOS 6.8上yum安装BLAS库 BLAS是一个广泛应用到科学计算软件上面的库文件,在CentOS的软件库中已经有该软件的软件包,我们可以直接使用yum来安装. 1.1.查询C ...
- mysql linux centos 安装_Linux centos 下在线安装mysql
1,查看是否有安装过mysql: #rpm -qa | grep mysql 如果无结果返回,说明没有安装Mysql,可以全新安装. 2,查看在线服务器提供的Mysql相关的安装包有哪些: #yum ...
- linux mysql8配置文件_Linux下 MySQL8安装教程
之前我们介绍了 Windows下的MySQL8安装教程,那么Linux下该如何安装呢?本文以CentOS 7 为例,一步一步教你如何在Linux下安装MySQL-8.0.18 文章目录 下载MySQL ...
- 红帽子linux硬盘安装教程,XP下硬盘安装RedHat Enterprise Linux 5.5图文教程
前言:现大已经是大二了,由于学习的需要,想安装 RedHat linux enterprise 学习一下,我整理一下后用06年买的老机成功安装了,下面就是我整理出来的教程(机器环境配置因人而异). 正 ...
- ylmf linux y1.15(ubuntu),Ylmf Linux Y1.15 XP下硬盘安装
硬盘安装适用于没有光驱的朋友,也适用于嫌光驱安装慢的人 1,把GRUB4DOS中grldr文件放到C盘根目录.上传Ubuntu9.04生成的wubildr,安装更兼容, 2,在C盘根目录新建一个men ...
- [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 ...
- centos得mysql安装教程_Centos下Mysql安装图文教程_MySQL
Mysql是比较常用的数据库,日常开发中也是采用地比较多.工欲善其事必先利其器,本文特地来讲解下如何在centos(其他linux发行版类似)下安装Mysql.首先准备的材料:Mysql,我这里采用的 ...
- 02_Weblogic课程之安装篇:RedHat下JDK安装,RedHat下Weblogic安装,目录结构,环境变量设置
1 Weblogic的安装方式有三种: 一.GUI方式安装 (java –jar wls1035_generic.jar [-mode=gui])这是默认的 二.Console方式安装 ...
最新文章
- SQL优化:使用explain
- 基于Android平台的多分辨率解决方案[图]
- 不可错过的CMS学习笔记
- C++实践参考——OOP版电子词典
- 现代的缓存设计方案:Window-TinyLFU
- 程序员应具备的职业素质
- 2019.04.13 - 19:34
- ORA-02290:违反检查约束条件(sys_c0011321)什么原因
- 配置 php_零基础建站如何配置PHP运行环境 几种服务器环境配置的选择和方法
- visio2010安装
- 一卡通管理系统服务器,一卡通管理系统
- 常见的Java框架有哪些?
- 爬取企业信息-企业信用信息查询系统-天眼查爬虫
- itext实现横向pdf打印
- 请珍惜你身边那个默默爱你的人
- 想要职场安全感?那就请你别停止成长
- spreadtrum 6600L 开机init流程
- ecshop 简单修改 可做淘宝客网站
- 虚拟机已死,容器才是未来?
- hdu 3567(八码数 + 双向bfs)