arch-packages/linpack/linpack_runme_xeon64

27 lines
848 B
Text
Raw Normal View History

#!/usr/bin/env bash
2015-06-09 00:00:40 +02:00
#
export KMP_AFFINITY=nowarnings,compact
2016-05-01 17:28:10 +02:00
SKEL_CONFIG="/usr/share/linpack"
CONFIG="$SKEL_CONFIG/linpack.conf"
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
[[ -f "$SKEL_CONFIG/linpack.conf" ]] || {
echo "ERROR: Missing $SKEL_CONFIG/linpack.conf - reinstall this package." ; exit 1 ; }
[[ -d $XDG_CONFIG_HOME ]] || mkdir $XDG_CONFIG_HOME
[[ -f "$XDG_CONFIG_HOME/linpack.conf" ]] || cp "$CONFIG" "$XDG_CONFIG_HOME"
echo -e "Edit \E[31m$XDG_CONFIG_HOME/linpack.conf\E[37m to adjust the amount of physical memory to consume."
2015-06-09 00:00:40 +02:00
echo
echo -e "Starting calculation.... hit ctrl+c to stop."
2017-12-14 21:36:47 +01:00
echo -e "Consult \E[31m~/lin_xeon64.txt\E[37m for results as they are caculated."
2015-06-09 00:00:40 +02:00
date
2017-12-14 21:36:47 +01:00
date >> ~/lin_xeon64.txt
2016-05-01 17:28:10 +02:00
2017-12-14 21:36:47 +01:00
/usr/bin/xlinpack_xeon64 $XDG_CONFIG_HOME/linpack.conf >> ~/lin_xeon64.txt
date >> ~/lin_xeon64.txt
2015-06-09 00:00:40 +02:00
echo -n "Done: "
date