-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_sequential.sh
103 lines (90 loc) · 5.92 KB
/
test_sequential.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
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/bin/bash
echo "Hardware statistics ................."
lscpu | grep -E '^Thread|^Core|^Socket|^CPU\('
echo "Checking test data .................."
echo
echo "Compiling ..........................."
echo
echo "Compiling sequential ijk"
make seq_ijk 1>/dev/null
echo "Compiling blocked sequential ijk"
make blk_seq_ijk 1>/dev/null
echo "Compiling blocked sequential kij"
make blk_seq_kij 1>/dev/null
echo "Compiling BLAS"
make seq_blas 1>/dev/null
echo
echo "Running tests ......................."
echo
echo "512 x 512 ..........................."
cal_t=$((time bin/seq_ijk data/512x512a.txt data/512x512b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_ijk data/512x512a.txt data/512x512b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_kij data/512x512a.txt data/512x512b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked kij algorithm $cal_t"
cal_t=$((time bin/seq_blas data/512x512a.txt data/512x512b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "BLAS $cal_t"
echo "1024 x 1024 ..........................."
cal_t=$((time bin/seq_ijk data/1024x1024a.txt data/1024x1024b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_ijk data/1024x1024a.txt data/1024x1024b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_kij data/1024x1024a.txt data/1024x1024b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked kij algorithm $cal_t"
cal_t=$((time bin/seq_blas data/1024x1024a.txt data/1024x1024b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "BLAS $cal_t"
echo "1536 x 1536 ..........................."
cal_t=$((time bin/seq_ijk data/1536x1536a.txt data/1536x1536b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_ijk data/1536x1536a.txt data/1536x1536b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_kij data/1536x1536a.txt data/1536x1536b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked kij algorithm $cal_t"
cal_t=$((time bin/seq_blas data/1536x1536a.txt data/1536x1536b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "BLAS $cal_t"
echo "2048 x 2048 ..........................."
cal_t=$((time bin/seq_ijk data/2048x2048a.txt data/2048x2048b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_ijk data/2048x2048a.txt data/2048x2048b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_kij data/2048x2048a.txt data/2048x2048b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked kij algorithm $cal_t"
cal_t=$((time bin/seq_blas data/2048x2048a.txt data/2048x2048b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "BLAS $cal_t"
echo "2560 x 2560 ..........................."
cal_t=$((time bin/seq_ijk data/2560x2560a.txt data/2560x2560b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_ijk data/2560x2560a.txt data/2560x2560b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_kij data/2560x2560a.txt data/2560x2560b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked kij algorithm $cal_t"
cal_t=$((time bin/seq_blas data/2560x2560a.txt data/2560x2560b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "BLAS $cal_t"
echo "3072 x 3072 ..........................."
cal_t=$((time bin/seq_ijk data/3072x3072a.txt data/3072x3072b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_ijk data/3072x3072a.txt data/3072x3072b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_kij data/3072x3072a.txt data/3072x3072b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked kij algorithm $cal_t"
cal_t=$((time bin/seq_blas data/3072x3072a.txt data/3072x3072b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "BLAS $cal_t"
echo "3584 x 3584 ..........................."
cal_t=$((time bin/seq_ijk data/3584x3584a.txt data/3584x3584b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_ijk data/3584x3584a.txt data/3584x3584b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_kij data/3584x3584a.txt data/3584x3584b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked kij algorithm $cal_t"
cal_t=$((time bin/seq_blas data/3584x3584a.txt data/3584x3584b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "BLAS $cal_t"
echo "4096 x 4096 ..........................."
cal_t=$((time bin/seq_ijk data/4096x4096a.txt data/4096x4096b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_ijk data/4096x4096a.txt data/4096x4096b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked ijk algorithm $cal_t"
cal_t=$((time bin/blk_seq_kij data/4096x4096a.txt data/4096x4096b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "Blocked kij algorithm $cal_t"
cal_t=$((time bin/seq_blas data/4096x4096a.txt data/4096x4096b.txt) 2>&1 > /dev/null | grep real | awk '{print $2}')
echo "BLAS $cal_t"