Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- for i in {1..16}
- do
- TOTAL=0
- for trial in {1..15}
- do
- RESULT=$(./prog --workers $i --iterations 20 --clusters 16 --input random-n65536-d32-c16.txt --threshold 0.0000001f)
- TOTAL=$(echo "$TOTAL $RESULT" | awk '{print $1 + $2}')
- done
- TOTAL=$(echo "$TOTAL 15" | awk '{print $1/$2}')
- echo $TOTAL
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement