2020-06-10 11:53:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. CONFIG
|
|
|
|
|
2020-06-10 13:50:53 +00:00
|
|
|
mkdir -p ${RESULTSDIR}
|
|
|
|
TIMESTAMP=$(date +%s)
|
|
|
|
|
2020-06-10 12:04:45 +00:00
|
|
|
# stop unnecessary services
|
2020-06-10 11:53:11 +00:00
|
|
|
sudo systemctl stop ${SERVICES}
|
|
|
|
|
2020-06-10 12:04:45 +00:00
|
|
|
# Unmount all the snap loop devices
|
|
|
|
for mount in $(df -h | grep loop.*snap | awk '{print $6}'); do sudo umount $mount; done
|
|
|
|
|
2020-06-10 11:53:11 +00:00
|
|
|
cd ${SCRIPTSDIR}/../configs
|
2020-06-10 13:50:53 +00:00
|
|
|
|
2020-06-10 14:59:58 +00:00
|
|
|
COMMAND="${WORKDIR}/hpl-2.3/bin/rpi4-mpich/xhpl"
|
|
|
|
|
|
|
|
if [ ${WRITE_OUT_FILE} -eq 1 ] ; then
|
|
|
|
${COMMAND} | tee -a ${RESULTSDIR}/HPL.out.${TIMESTAMP}
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo Results ...
|
|
|
|
echo
|
|
|
|
|
|
|
|
grep WR.*17 ${RESULTSDIR}/HPL.out.${TIMESTAMP}
|
|
|
|
|
|
|
|
else
|
|
|
|
${COMMAND}
|
|
|
|
fi
|
2020-06-10 13:50:53 +00:00
|
|
|
|