内容部分来自:
Linpack之HPL测试 (HPL Benchmark)
并参考mpich+blas+hpl 集群配置
安装HPL之前需要配置好:
BLAS/CBLAS/ATLAS 库
GCC/Fortran77编译器
MPICH 并行环境
安装步骤
复制文件:
sudo cp CBLAS/lib/* /usr/local/lib
sudo cp BLAS-3.8.0/blas_LINUX.a /usr/local/lib
下载 hpl-2.3.tar.gz
wget http://www.netlib.org/benchmark/hpl/hpl-2.3.tar.gz
tar -xzf hpl-2.3.tar.gz
cd hpl-2.3
在hpl-2.3/setup中选择合适的makefile,这里需要选择Make.Linux_PII_FBLAS,把它拷贝至hpl-2.3目录下,修改名字为Make.LinuxGeneric修改它。
修改字段:
ARCH = LinuxGeneric
TOPdir = /root/asc/hpl/hpl-2.3 #hpl解压目录
MPdir = /usr/local/ #mpich安装目录
LAdir = /usr/local/lib
LAlib = $(LAdir)/cblas_LINUX.a#blas编译出来的文件
CC = /usr/local/bin/mpicc
LINKER = /usr/local/bin/mpif77
我的配置文件
#
# -- High Performance Computing Linpack Benchmark (HPL)
# HPL - 2.3 - December 2, 2018
# Antoine P. Petitet
# University of Tennessee, Knoxville
# Innovative Computing Laboratory
# (C) Copyright 2000-2008 All Rights Reserved
#
# -- Copyright notice and Licensing terms:
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in the
# documentation and/or other materials provide