raspberrypi-hpl/scripts/run_job.sh
Arif Ali 2bee672d92 Fix clean_arch, and update run_job
Added timestamp variable, and output the results to a file, so that these
can be viewed agin at a later date
2020-06-10 13:50:53 +00:00

22 lines
442 B
Bash
Executable File

#!/bin/bash
. CONFIG
mkdir -p ${RESULTSDIR}
TIMESTAMP=$(date +%s)
# stop unnecessary services
sudo systemctl stop ${SERVICES}
# Unmount all the snap loop devices
for mount in $(df -h | grep loop.*snap | awk '{print $6}'); do sudo umount $mount; done
cd ${SCRIPTSDIR}/../configs
${WORKDIR}/hpl-2.3/bin/rpi4-mpich/xhpl | tee -a ${RESULTSDIR}/HPL.out.${TIMESTAMP}
echo
echo Results ...
echo
grep WR.*17 ${RESULTSDIR}/HPL.out.${TIMESTAMP}