Skip to content

Instantly share code, notes, and snippets.

@scrouthtv
Created September 15, 2021 19:53
Show Gist options
  • Save scrouthtv/daddcd2f37187a8a3bb2c83cb2b04429 to your computer and use it in GitHub Desktop.
Save scrouthtv/daddcd2f37187a8a3bb2c83cb2b04429 to your computer and use it in GitHub Desktop.
How to build HPL for your local PC (Arch edition)

Based on https://howtoforge.com/tutorial/hpl-high-performance-linpack-benchmark-raspberry-pi/

Dependencies

Install

  • gfortran (gcc-fortran)
  • blas (openblas)
  • mpi (openmpi)

Prepare

  1. Get newest version from http://www.netlib.org/benchmark/hpl/
  2. Unpack contents into ~/hpl
  3. cd into ~/hpl/setup and execute sh make_generic
  4. Copy ~/hpl/setup/Make.UNKNOWN to ~/hpl/Make.L64
  5. Set
  • ARCH to the suffix of the Makefile (e.g. L64)
  • TOPdir to the root directory of hpl (e.g. hpl)
  • MPinc to the location of the MPI header files (e.g. -I /usr/include/openmpi)
  • MPlib to the name of the MPI library (e.g. /usr/lib/openmpi/libmpi.so)
  • LAinc to the location of the LA header files (e.g. /usr/include)
  • LAlib to the name of the LA library (e.g. -lblas)

Build and Run

  1. make arch=L64
  2. Edit HPL.dat -- this is magic
  3. Run xhpl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment