Page MenuHomec4science

launch.sh
No OneTemporary

File Metadata

Created
Thu, Apr 18, 21:24

launch.sh

#!/bin/bash
set -eou pipefail
module load $(echo "__BLACKDYNAMITE__modules_list__" | tr "[,\[\]']" " ")
bash ./compile_revision.sh __BLACKDYNAMITE__akantu_url__ __BLACKDYNAMITE__source_path__ __BLACKDYNAMITE__revision__
res=$?
if [ ! $res -eq 0 ]; then
exit $res
fi
updateRuns.py --updates "state = COMPILED" --truerun
./perf_test | tee times.out
res=$?
if [ ! $res -eq 0 ]; then
updateRuns.py --updates "state = FAIL_TO_RUN" --truerun
exit $res
fi
updateRuns.py --updates "state = RAN_TEST" --truerun
while IFS= read -r line; do
id=$(echo "$line" | awk '{ print $1 }')
time=$(echo "$line" | awk '{ print $2 }')
nb=$(echo "$line" | awk '{ print $3 }')
echo pushQuantity.py --quantity_id time_${id} --value ${time} --is_float --truerun
pushQuantity.py --quantity_id time_${id} --value ${time} --is_float --truerun
echo pushQuantity.py --quantity_id nb_${id} --value ${nb} --is_float --truerun
pushQuantity.py --quantity_id nb_${id} --value ${nb} --is_float --truerun
done < <(cat times.out | grep -a ' + ' | sed 's/ + \(.*\)\s*:\s*\([0-9.]*\)us - .*: \([0-9]*\)/\1 \2 \3/')
updateRuns.py --updates "state = FINISHED" --truerun

Event Timeline