Add 'linpack/' from commit 'bc2cf3f39e
'
git-subtree-dir: linpack git-subtree-mainline:2ef7e351d4
git-subtree-split:bc2cf3f39e
This commit is contained in:
commit
c9a218c01f
4 changed files with 89 additions and 0 deletions
26
linpack/linpack_runme_xeon64
Normal file
26
linpack/linpack_runme_xeon64
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
export KMP_AFFINITY=nowarnings,compact
|
||||
|
||||
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."
|
||||
echo
|
||||
echo -e "Starting calculation.... hit ctrl+c to stop."
|
||||
echo -e "Consult \E[31m~/lin_xeon64.txt\E[37m for results as they are caculated."
|
||||
|
||||
date
|
||||
date >> ~/lin_xeon64.txt
|
||||
|
||||
/usr/bin/xlinpack_xeon64 $XDG_CONFIG_HOME/linpack.conf >> ~/lin_xeon64.txt
|
||||
date >> ~/lin_xeon64.txt
|
||||
echo -n "Done: "
|
||||
date
|
Loading…
Add table
Add a link
Reference in a new issue