-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathrun.sh
25 lines (20 loc) · 959 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
### SAVE CURRENT DIRECTORY ###
CURRENT_DIR=$(pwd)
echo "----------------------------------------------------------------------------------"
echo "RiVec Benchmark Suite"
echo "----------------------------------------------------------------------------------"
echo ""
while true; do
read -p 'select one application to run [axpy blackscholes canneal jacobi-2d lavaMD matmul spmv swaptions streamcluster somier particlefilter pathfinder]: ' app
if [[ $app == "axpy" ]] || [[ $app == "blackscholes" ]] || [[ $app == "canneal" ]] || [[ $app == "jacobi-2d" ]] || [[ $app == "lavaMD" ]] || [[ $app == "matmul" ]] || [[ $app == "spmv" ]] || [[ $app == "swaptions" ]] || [[ $app == "streamcluster" ]] || [[ $app == "somier" ]] || [[ $app == "particlefilter" ]] || [[ $app == "pathfinder" ]]; then
break
else
echo "Input not valid, try again."
continue
fi
done
cd _$app
source run.sh
### RETURN ###
cd $CURRENT_DIR