High Performance Linpack

  1. Install OpenMPI
    • Download and unzip
      wget https://download.open-mpi.org/release/open-mpi/v5.0/openmpi-5.0.6.tar.gz
      tar xzf openmpi-5.0.6.tar.gz
      cd openmpi-5.0.6/
      
    • Compile
      Preferably installed at "/usr/local/" but require sudo access
      ./configure --prefix=<OPENMPI_INSTALL_DIRECTORY>
      make
      make install
      
  2. Install OpenBLAS
    • Download and unzip
      wget https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.28/OpenBLAS-0.3.28.tar.gz
      tar xzf OpenBLAS-0.3.28.tar.gz
      cd OpenBLAS-0.3.28/
      
    • Compile
      Preferably installed at "/usr/local/" but require sudo access
      make
      make PREFIX=<OPEN_BLAS_INSTALL_DIRECTORY> install
      
  3. Update Path
    • Update path to OpenMPI and OpenBLAS in .bashrc or .zshrc
      export PATH=<OPENMPI_INSTALL_DIRECTORY>/bin:$PATH
      export LD_LIBRARY_PATH=<OPENMPI_INSTALL_DIRECTORY>/lib:$LD_LIBRARY_PATH
      export LD_LIBRARY_PATH=<OPEN_BLAS_INSTALL_DIRECTORY>/lib:$LD_LIBRARY_PATH
      
      source ~/.bashrc
      
      or
      source ~/.zshrc
      
  4. Download HPL
    • Using wget or curl download from official website:
      wget http://www.netlib.org/benchmark/hpl/hpl-2.3.tar.gz
      
      or
      curl -O http://www.netlib.org/benchmark/hpl/hpl-2.3.tar.gz
      
    • Unzip
      tar -xf hpl-2.3.tar.gz
      

    1. Compile with CPU

    2. Compile with AMD GPU