Skip to content
Snippets Groups Projects
Commit fd6ea75a authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Added regtest for Communicator:: Min Max Prod

parent 5123cd2f
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,18 @@ void run(Communicator& comm){
comm.Sum(&a[0],a.size());
dump(comm,ofs,a);
reset(comm,a);
comm.Prod(&a[0],a.size());
dump(comm,ofs,a);
reset(comm,a);
comm.Max(&a[0],a.size());
dump(comm,ofs,a);
reset(comm,a);
comm.Min(&a[0],a.size());
dump(comm,ofs,a);
reset(comm,a);
comm.Bcast(&a[0],a.size(),0);
dump(comm,ofs,a);
......
1
6 12 18 24 30 36 42 48 54 60 66 72
6 48 162 384 750 1296 2058 3072 4374 6000 7986 10368
3 6 9 12 15 18 21 24 27 30 33 36
1 2 3 4 5 6 7 8 9 10 11 12
1 2 3 4 5 6 7 8 9 10 11 12
3 6 9 12 15 18 21 24 27 30 33 36
1 2 3 4 5 6 7 8 9 10 11 12
......
1
6 12 18 24 30 36 42 48 54 60 66 72
6 48 162 384 750 1296 2058 3072 4374 6000 7986 10368
3 6 9 12 15 18 21 24 27 30 33 36
1 2 3 4 5 6 7 8 9 10 11 12
1 2 3 4 5 6 7 8 9 10 11 12
3 6 9 12 15 18 21 24 27 30 33 36
2 4 6 8 10 12 14 16 18 20 22 24
......
1
6 12 18 24 30 36 42 48 54 60 66 72
6 48 162 384 750 1296 2058 3072 4374 6000 7986 10368
3 6 9 12 15 18 21 24 27 30 33 36
1 2 3 4 5 6 7 8 9 10 11 12
1 2 3 4 5 6 7 8 9 10 11 12
3 6 9 12 15 18 21 24 27 30 33 36
3 6 9 12 15 18 21 24 27 30 33 36
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment