Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI/TESH] Breaks tests: Fix colors for functions
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 13 Jun 2018 11:45:10 +0000 (13:45 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 13 Jun 2018 11:58:36 +0000 (13:58 +0200)
The map with the colors used in instr_smpi.cpp was not correctly
checked because substrings were allowed too:

If irecv was passed, the map found recv first, checked whether
recv is a substring of irecv (= yes) and returned the color associated
with recv even though irecv was in the map as well.

The bugfix will be in the next commit.

examples/smpi/trace/trace.tesh

index bbd5580..6b2902a 100644 (file)
@@ -136,7 +136,7 @@ $ tail -n +3 ${bindir:=.}/smpi_trace.trace
 > 12 0.000000 2 3 6
 > 13 0.000000 2 3
 > 12 0.000000 2 3 8
-> 5 9 2 PMPI_Isend "0 0 1"
+> 5 9 2 PMPI_Isend "0.52 0.52 1"
 > 5 10 2 PMPI_Wait "1 1 0"
 > 13 0.000000 2 1
 > 12 0.000000 2 1 9
@@ -146,9 +146,9 @@ $ tail -n +3 ${bindir:=.}/smpi_trace.trace
 > 5 11 2 PMPI_Recv "1 0 0"
 > 5 12 2 PMPI_Barrier "0 0.78 0.78"
 > 5 13 2 PMPI_Send "0 0 1"
-> 5 14 2 PMPI_Irecv "1 0 0"
-> 5 15 2 PMPI_Waitany "1 1 0"
-> 5 16 2 PMPI_Waitall "1 1 0"
+> 5 14 2 PMPI_Irecv "1 0.52 0.52"
+> 5 15 2 PMPI_Waitany "0.78 0.78 0.58"
+> 5 16 2 PMPI_Waitall "0.78 0.78 0"
 > 5 17 2 test
 > 5 18 2 PMPI_Finalize "0 1 0"
 > 13 1.000000 2 2