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
This commit is contained in:
parent
a9da535031
commit
2bee672d92
@ -1,5 +1,6 @@
|
||||
export DOWNLOADS=~/Downloads
|
||||
export WORKDIR=~/rpi-hpl-workdir
|
||||
export RESULTSDIR=${WORKDIR}/results
|
||||
export SCRIPTSDIR=${PWD}
|
||||
export SERVICES="snap.lxd.daemon snap.lxd.daemon.unix.socket postfix systemd-timesyncd wpa_supplicant snapd snapd.apparmor.service systemd-resolved snapd.service snapd.socket"
|
||||
|
||||
|
@ -14,5 +14,5 @@ tar xfz ${DOWNLOADS}/${package}-${version}.tar.gz
|
||||
cd ${package}-${version}
|
||||
|
||||
cp ${SCRIPTSDIR}/../configs/Make.rpi4-mpich .
|
||||
make arch=rpi4-mpich -j 3 cleab_arch
|
||||
make arch=rpi4-mpich -j 3 clean_arch
|
||||
make arch=rpi4-mpich -j 3 install
|
||||
|
@ -2,6 +2,9 @@
|
||||
|
||||
. CONFIG
|
||||
|
||||
mkdir -p ${RESULTSDIR}
|
||||
TIMESTAMP=$(date +%s)
|
||||
|
||||
# stop unnecessary services
|
||||
sudo systemctl stop ${SERVICES}
|
||||
|
||||
@ -9,4 +12,10 @@ sudo systemctl stop ${SERVICES}
|
||||
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
|
||||
${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}
|
||||
|
Loading…
Reference in New Issue
Block a user