Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F58981236
launch.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Apr 18, 21:24
Size
1 KB
Mime Type
text/x-shellscript
Expires
Sat, Apr 20, 21:24 (2 d)
Engine
blob
Format
Raw Data
Handle
17056834
Attached To
R12526 perf-test-akantu
launch.sh
View Options
#!/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
Log In to Comment