-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.sh
More file actions
executable file
·60 lines (43 loc) · 1.74 KB
/
Copy pathdata.sh
File metadata and controls
executable file
·60 lines (43 loc) · 1.74 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash -x
output=../../../results/weak-scaling-gpu-old.csv
if test -f "$output"; then
rm -rf $output
fi
for file in $(find ./v1.2 -name "*.out")
do
data=$(grep "| Size | Iterations |" -A1 ${file} | grep -v "| Size | Iterations |" | sed '/^--$/d' | tr -d " \t\r" | tr '|' ',' | sed -e "s/^/ChASE-GPU (v1.2.1),$(basename $(dirname ${file}))/" | sed 's/.$//')
echo -e "$data" >> $output
done
sed -i -e '1s/^/mode,nodes,nprocs,Iterations,Vecs,All[sec],Lanczos[sec],Filter[sec],QR[sec],RR[sec],Resid[sec]\
/' $output
if test -f "$output-e"; then
rm -rf $output-e
fi
output=../../../results/weak-scaling-gpu-new.csv
if test -f "$output"; then
rm -rf $output
fi
for file in $(find ./v1.3 -name "*.out")
do
data=$(grep "| Size | Iterations |" -A1 ${file} | grep -v "| Size | Iterations |" | sed '/^--$/d' | tr -d " \t\r" | tr '|' ',' | sed -e "s/^/ChASE-GPU (v1.3.1),$(basename $(dirname ${file}))/" | sed 's/.$//')
echo -e "$data" >> $output
done
sed -i -e '1s/^/mode,nodes,GFLOPS,GFLOPS(F),nprocs,Iterations,Vecs,All[sec],Lanczos[sec],Filter[sec],QR[sec],RR[sec],Resid[sec]\
/' $output
if test -f "$output-e"; then
rm -rf $output-e
fi
output=../../../results/weak-scaling-gpu-new-nccl.csv
if test -f "$output"; then
rm -rf $output
fi
for file in $(find ./v1.3-nccl -name "*.out")
do
data=$(grep "| Size | Iterations |" -A1 ${file} | grep -v "| Size | Iterations |" | sed '/^--$/d' | tr -d " \t\r" | tr '|' ',' | sed -e "s/^/ChASE-GPU (NCCL),$(basename $(dirname ${file}))/" | sed 's/.$//')
echo -e "$data" >> $output
done
sed -i -e '1s/^/mode,nodes,GFLOPS,GFLOPS(F),nprocs,Iterations,Vecs,All[sec],Lanczos[sec],Filter[sec],QR[sec],RR[sec],Resid[sec]\
/' $output
if test -f "$output-e"; then
rm -rf $output-e
fi