Add tests
This commit is contained in:
parent
4096c5f1dc
commit
ad50f453da
43 changed files with 205 additions and 0 deletions
4
2025.04.04/test/1/a.txt
Normal file
4
2025.04.04/test/1/a.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
5 4 1 1
|
||||
4 5 1 1
|
||||
1 1 4 2
|
||||
1 1 2 4
|
1
2025.04.04/test/1/a1.txt
Symbolic link
1
2025.04.04/test/1/a1.txt
Symbolic link
|
@ -0,0 +1 @@
|
|||
a.txt
|
1
2025.04.04/test/1/b.txt
Normal file
1
2025.04.04/test/1/b.txt
Normal file
|
@ -0,0 +1 @@
|
|||
5 6 3 5
|
4
2025.04.04/test/1/c.txt
Normal file
4
2025.04.04/test/1/c.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
5 7 6 5 12
|
||||
7 10 8 7 17
|
||||
6 8 10 9 17
|
||||
5 7 9 10 17
|
1
2025.04.04/test/1/c_b.txt
Normal file
1
2025.04.04/test/1/c_b.txt
Normal file
|
@ -0,0 +1 @@
|
|||
12 17 17 17
|
1
2025.04.04/test/1/c_x.txt
Normal file
1
2025.04.04/test/1/c_x.txt
Normal file
|
@ -0,0 +1 @@
|
|||
0 1 0 1 0
|
5
2025.04.04/test/1/d.txt
Normal file
5
2025.04.04/test/1/d.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
68 -41 -17 10
|
||||
-41 25 10 -6
|
||||
-17 10 5 -3
|
||||
10 -6 -3 2
|
||||
0 0 0 0
|
6
2025.04.04/test/1/e.txt
Normal file
6
2025.04.04/test/1/e.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
1 1 1 1 1 1 1 1
|
||||
1 1 1 1 1 1 1 1
|
||||
1 1 1 1 1 1 1 1
|
||||
1 1 1 1 1 1 1 1
|
||||
1 1 1 1 1 1 1 1
|
||||
1 1 1 1 1 1 1 1
|
4
2025.04.04/test/1/f.txt
Normal file
4
2025.04.04/test/1/f.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
1 2 3 0 1 4
|
||||
2 4 5 -1 0 4
|
||||
3 5 -6 -2 -3 1
|
||||
0 -1 -2 1 2 1
|
4
2025.04.04/test/1/g.txt
Normal file
4
2025.04.04/test/1/g.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
6 5 4 3 2 1 8 7
|
||||
-5 -4 -3 -2 -1 -8 -7 -6
|
||||
4 3 2 1 8 7 6 5
|
||||
-3 -2 -1 -8 -7 -6 -5 -4
|
4
2025.04.04/test/1/g1.txt
Normal file
4
2025.04.04/test/1/g1.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
6 5 4 3 2 1.1 8 7
|
||||
-5 -4 -3 -2 -1.2 -8 -7 -6
|
||||
4 3 2 1.3 8 7 6 5
|
||||
-3 -2 -1.4 -8 -7 -6 -5 -4
|
4
2025.04.04/test/1/g2.txt
Normal file
4
2025.04.04/test/1/g2.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
6 5 4 3 2 1.1 8 7
|
||||
-5 -4 -3 -2 -1.2 -8.1 -7 -6
|
||||
4 3 2 1.3 8 7 6 5
|
||||
-3 -2 -1.4 -8 -7 -6 -5 -4
|
8
2025.04.04/test/1/h.txt
Normal file
8
2025.04.04/test/1/h.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
6 -5 4 -3
|
||||
5 -4 3 -2
|
||||
4 -3 2 -1
|
||||
3 -2 1 -8
|
||||
2 -1 8 -7
|
||||
1 -8 7 -6
|
||||
8 -7 6 -5
|
||||
7 -6 5 -4
|
8
2025.04.04/test/1/h1.txt
Normal file
8
2025.04.04/test/1/h1.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
6 -5.1 4 -3
|
||||
5 -4.2 3 -2
|
||||
4 -3.3 2 -1
|
||||
3 -2.4 1 -8
|
||||
2 -1.5 8 -7
|
||||
1 -8.6 7 -6
|
||||
8 -7.7 6 -5
|
||||
7 -6.8 5 -4
|
8
2025.04.04/test/1/h2.txt
Normal file
8
2025.04.04/test/1/h2.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
6 -5.1 4 -3
|
||||
5 -4.2 3 -2
|
||||
4 -3.3 2 -1
|
||||
3 -2.4 0.9 -8
|
||||
2 -1.5 8 -7
|
||||
1 -8.6 7 -6
|
||||
8 -7.7 6 -5
|
||||
7 -6.8 5 -4
|
1
2025.04.04/test/1/x.txt
Normal file
1
2025.04.04/test/1/x.txt
Normal file
|
@ -0,0 +1 @@
|
|||
1 0 1 0
|
1
2025.04.04/test/1/x0.txt
Normal file
1
2025.04.04/test/1/x0.txt
Normal file
|
@ -0,0 +1 @@
|
|||
0 0 0 0
|
1
2025.04.04/test/1/x01.txt
Normal file
1
2025.04.04/test/1/x01.txt
Normal file
|
@ -0,0 +1 @@
|
|||
0 1 0 0
|
4
2025.04.04/test/3/a.txt
Normal file
4
2025.04.04/test/3/a.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
5 4 1 1
|
||||
4 5 1 1
|
||||
1 1 4 2
|
||||
1 1 2 4
|
4
2025.04.04/test/3/b.txt
Normal file
4
2025.04.04/test/3/b.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
7 4 4 1
|
||||
4 7 1 4
|
||||
4 1 7 4
|
||||
1 4 4 7
|
4
2025.04.04/test/3/c.txt
Normal file
4
2025.04.04/test/3/c.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
6 4 4 1
|
||||
4 6 1 4
|
||||
4 1 6 4
|
||||
1 4 4 6
|
6
2025.04.04/test/3/d.txt
Normal file
6
2025.04.04/test/3/d.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
1 2 3 0 1 2
|
||||
2 4 5 -1 0 3
|
||||
3 5 6 -2 -3 0
|
||||
0 -1 -2 1 2 3
|
||||
1 0 -3 2 4 5
|
||||
2 3 0 3 5 6
|
6
2025.04.04/test/3/e.txt
Normal file
6
2025.04.04/test/3/e.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
3 2 3 0 1 2
|
||||
2 6 5 -1 0 3
|
||||
3 5 8 -2 -3 0
|
||||
0 -1 -2 3 2 3
|
||||
1 0 -3 2 6 5
|
||||
2 3 0 3 5 8
|
4
2025.04.04/test/3/f.txt
Normal file
4
2025.04.04/test/3/f.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
6 -3 4 1
|
||||
4 2 4 0
|
||||
4 -2 3 1
|
||||
4 2 3 1
|
1
2025.04.04/test/3/g.txt
Normal file
1
2025.04.04/test/3/g.txt
Normal file
|
@ -0,0 +1 @@
|
|||
-1
|
4
2025.04.04/test/a.txt
Normal file
4
2025.04.04/test/a.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
5 7 6 5
|
||||
7 10 8 7
|
||||
6 8 10 9
|
||||
5 7 9 10
|
4
2025.04.04/test/a20.txt
Normal file
4
2025.04.04/test/a20.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
5e-20 7e-20 6e-20 5e-20
|
||||
7e-20 10e-20 8e-20 7e-20
|
||||
6e-20 8e-20 10e-20 9e-20
|
||||
5e-20 7e-20 9e-20 10e-20
|
4
2025.04.04/test/a40.txt
Normal file
4
2025.04.04/test/a40.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
5e+40 7e+40 6e+40 5e+40
|
||||
7e+40 10e+40 8e+40 7e+40
|
||||
6e+40 8e+40 10e+40 9e+40
|
||||
5e+40 7e+40 9e+40 10e+40
|
4
2025.04.04/test/b.txt
Normal file
4
2025.04.04/test/b.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
7 4 4 1
|
||||
4 7 1 4
|
||||
4 1 7 4
|
||||
1 4 4 7
|
6
2025.04.04/test/c.txt
Normal file
6
2025.04.04/test/c.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
1 2 3 0 1 2
|
||||
2 4 5 -1 0 3
|
||||
3 5 6 -2 -3 0
|
||||
0 -1 -2 1 2 3
|
||||
1 0 -3 2 4 5
|
||||
2 3 0 3 5 6
|
6
2025.04.04/test/d.txt
Normal file
6
2025.04.04/test/d.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
1 2 3 0 1 4
|
||||
2 4 5 -1 0 4
|
||||
3 5 6 -2 -3 1
|
||||
0 -1 -2 1 2 1
|
||||
1 0 -3 2 4 3
|
||||
4 4 1 1 3 8
|
6
2025.04.04/test/e.txt
Normal file
6
2025.04.04/test/e.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
3 2 3 0 1 2
|
||||
2 6 5 -1 0 3
|
||||
3 5 8 -2 -3 0
|
||||
0 -1 -2 3 2 3
|
||||
1 0 -3 2 6 5
|
||||
2 3 0 3 5 8
|
4
2025.04.04/test/f.txt
Normal file
4
2025.04.04/test/f.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
6 -3 4 1
|
||||
4 2 4 0
|
||||
4 -2 3 1
|
||||
4 2 3 1
|
4
2025.04.04/test/g.txt
Normal file
4
2025.04.04/test/g.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
-2 2 2 2
|
||||
-3 3 2 2
|
||||
-2 0 4 2
|
||||
-1 0 0 5
|
8
2025.04.04/test/h.txt
Normal file
8
2025.04.04/test/h.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
6 -3 4 1
|
||||
4 2 4 0
|
||||
4 -2 3 1
|
||||
4 2 3 1
|
||||
-2 2 2 2
|
||||
-3 3 2 2
|
||||
-2 0 4 2
|
||||
-1 0 0 5
|
3
2025.04.04/test/test1.sh
Executable file
3
2025.04.04/test/test1.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
# 300 runs
|
||||
for ((n=1; n<=300;n++)) ; do echo "--------- n=$n ----------" ; ./a.out $n ; done
|
3
2025.04.04/test/test13.sh
Executable file
3
2025.04.04/test/test13.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
# 145 runs
|
||||
for ((n=2; n<=30;n++)) ; do for ((m=3;m<=$n;m+=3)) ; do echo "n=$n m=$m" ; ./a.out $n $m ; done ; done
|
15
2025.04.04/test/test13_matr.sh
Executable file
15
2025.04.04/test/test13_matr.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
echo "a.txt"
|
||||
./a.out 4 3 /users/data/matr/a.txt
|
||||
echo "a20.txt"
|
||||
./a.out 4 3 /users/data/matr/a20.txt
|
||||
echo "b.txt"
|
||||
./a.out 4 3 /users/data/matr/b.txt
|
||||
echo "c.txt"
|
||||
./a.out 6 3 /users/data/matr/c.txt
|
||||
echo "d.txt"
|
||||
./a.out 6 3 /users/data/matr/d.txt
|
||||
echo "e.txt"
|
||||
./a.out 6 3 /users/data/matr/e.txt
|
||||
echo "f.txt"
|
||||
./a.out 6 3 /users/data/matr/f.txt
|
9
2025.04.04/test/test13_matr_mpi.sh
Executable file
9
2025.04.04/test/test13_matr_mpi.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
for k in 1 2 ; do echo "k=$k a.txt ---------------" ; mpirun -np $k ./a.out 4 3 /users/data/matr/a.txt ; done
|
||||
for k in 1 2 ; do echo "k=$k a20.txt ---------------" ; mpirun -np $k ./a.out 4 3 /users/data/matr/a20.txt ; done
|
||||
for k in 1 2 ; do echo "k=$k b.txt ---------------" ; mpirun -np $k ./a.out 4 3 /users/data/matr/b.txt ; done
|
||||
for k in 1 2 ; do echo "k=$k c.txt ---------------" ; mpirun -np $k ./a.out 6 3 /users/data/matr/c.txt ; done
|
||||
for k in 1 2 ; do echo "k=$k d.txt ---------------" ; mpirun -np $k ./a.out 6 3 /users/data/matr/d.txt ; done
|
||||
for k in 1 2 ; do echo "k=$k e.txt ---------------" ; mpirun -np $k ./a.out 6 3 /users/data/matr/e.txt ; done
|
||||
for k in 1 2 ; do echo "k=$k f.txt ---------------" ; mpirun -np $k ./a.out 6 3 /users/data/matr/f.txt ; done
|
9
2025.04.04/test/test13_matr_thr.sh
Executable file
9
2025.04.04/test/test13_matr_thr.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
for k in 1 2 ; do echo "k=$k a.txt ---------------" ; ./a.out 4 3 $k /users/data/matr/a.txt ; done
|
||||
for k in 1 2 ; do echo "k=$k a20.txt ---------------" ; ./a.out 4 3 $k /users/data/matr/a20.txt ; done
|
||||
for k in 1 2 ; do echo "k=$k b.txt ---------------" ; ./a.out 4 3 $k /users/data/matr/b.txt ; done
|
||||
for k in 1 2 ; do echo "k=$k c.txt ---------------" ; ./a.out 6 3 $k /users/data/matr/c.txt ; done
|
||||
for k in 1 2 ; do echo "k=$k d.txt ---------------" ; ./a.out 6 3 $k /users/data/matr/d.txt ; done
|
||||
for k in 1 2 ; do echo "k=$k e.txt ---------------" ; ./a.out 6 3 $k /users/data/matr/e.txt ; done
|
||||
for k in 1 2 ; do echo "k=$k f.txt ---------------" ; ./a.out 6 3 $k /users/data/matr/f.txt ; done
|
3
2025.04.04/test/test13_mpi.sh
Executable file
3
2025.04.04/test/test13_mpi.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
# 3000 runs
|
||||
for ((n=3; n<=30;n++)) ; do for ((m=3;m<=$n;m+=3)) ; do for ((k=1;k<=$n;k++)) ; do echo "n=$n m=$m k=$k ----------------" ; mpirun -np $k ./a.out $n $m ; done ; done ; done
|
3
2025.04.04/test/test13_thr.sh
Executable file
3
2025.04.04/test/test13_thr.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
# 3000 runs
|
||||
for ((n=3; n<=30;n++)) ; do for ((m=3;m<=$n;m+=3)) ; do for ((k=1;k<=$n;k++)) ; do echo "n=$n m=$m k=$k ----------------" ; ./a.out $n $m $k ; done ; done ; done
|
15
2025.04.04/test/test1_matr.sh
Executable file
15
2025.04.04/test/test1_matr.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
echo "a.txt"
|
||||
./a.out 4 /users/data/matr/a.txt
|
||||
echo "a20.txt"
|
||||
./a.out 4 /users/data/matr/a20.txt
|
||||
echo "b.txt"
|
||||
./a.out 4 /users/data/matr/b.txt
|
||||
echo "c.txt"
|
||||
./a.out 6 /users/data/matr/c.txt
|
||||
echo "d.txt"
|
||||
./a.out 6 /users/data/matr/d.txt
|
||||
echo "e.txt"
|
||||
./a.out 6 /users/data/matr/e.txt
|
||||
echo "f.txt"
|
||||
./a.out 6 /users/data/matr/f.txt
|
Loading…
Add table
Add a link
Reference in a new issue