Linpack under Ubuntu / Linux

Check latest LINPACK version
https://software.intel.com/en-us/articles/intel-mkl-benchmarks-suite

# https://software.intel.com/sites/default/files/managed/cc/19/l_mklb_p_2019.6.005.tgz

configure parameter

export MKL_DYNAMIC=false
export OMP_NUM_THREADS=4

Run LINPACK

wget https://raw.githubusercontent.com/panticz/scripts/master/run_linpack.sh -qO- | bash

$!/bin/bash

URL=https://software.intel.com/sites/default/files/managed/cc/19/l_mklb_p_2019.6.005.tgz

# Download and extract LINPACK
[ ! -d /tmp/l_mklb_p_* ] && wget -qO- ${URL} | tar -xz -C /tmp

# Run LINPACK
(
  cd /tmp/l_mklb_p_*/benchmarks_*/linux/mkl/benchmarks/linpack
  ./runme_xeon64
)
>

Install LINPACK

#!/bin/bash

URL=https://software.intel.com/sites/default/files/managed/e4/1c/l_mklb_p_2019.5.004.tgz

# download
wget ${URL} -O /tmp/l_lpk.tgz

# extract
tar -xzf /tmp/l_lpk.tgz -C /tmp/

# copy linpack to /usr/share directory
cp -a /tmp/l_mklb_p_*/benchmarks_*/linux/mkl/benchmarks/linpack /usr/share

# create soft links to executables
ln -sf /usr/share/linpack/runme_xeon64 /usr/sbin/
ln -sf /usr/share/linpack/xlinpack_xeon64 /usr/sbin/

# adjust path in runme_xeon64
#sed -i s'|./xlinpack_$arch lininput_$arch|/usr/sbin/xlinpack_$arch /usr/share/linpack/lininput_$arch|g' /usr/sbin/runme_xeon64
>

Get CPU info

CPU=$(cat /proc/cpuinfo | grep "model name" | tail -1)
COUNT=$(cat /proc/cpuinfo | grep processor | wc -l)
 
echo "
CPU   : ${CPU}
COUNT : ${COUNT}
"

Links
http://www.roylongbottom.org.uk/linpack%20results.htm