Przeglądaj źródła

Fix container of work stealing links

Samuel Thibault 10 lat temu
rodzic
commit
8b8300df81
2 zmienionych plików z 9 dodań i 7 usunięć
  1. 4 4
      src/debug/traces/starpu_fxt.c
  2. 5 3
      src/debug/traces/starpu_paje.c

+ 4 - 4
src/debug/traces/starpu_fxt.c

@@ -1125,12 +1125,12 @@ static void handle_work_stealing(struct fxt_ev_64 *ev, struct starpu_fxt_options
 		program_container_alias(program_container, STARPU_POTI_STR_LEN, prefix);
 		worker_container_alias(src_worker_container, STARPU_POTI_STR_LEN, prefix, src);
 		worker_container_alias(dst_worker_container, STARPU_POTI_STR_LEN, prefix, dst);
-		poti_StartLink(time, program_container, "L", src_worker_container, paje_value, paje_key);
-		poti_EndLink(time+0.000000001, program_container, "L", dst_worker_container, paje_value, paje_key);
+		poti_StartLink(time, program_container, "WSL", src_worker_container, paje_value, paje_key);
+		poti_EndLink(time+0.000000001, program_container, "WSL", dst_worker_container, paje_value, paje_key);
 #else
 
-		fprintf(out_paje_file, "18	%.9f	L	%sp	%u	%sw%d	steal_%u\n", time, prefix, size, prefix, src, comid);
-		fprintf(out_paje_file, "19	%.9f	L	%sp	%u	%sw%d	steal_%u\n", time+0.000000001, prefix, size, prefix, dst, comid);
+		fprintf(out_paje_file, "18	%.9f	WSL	%sp	%u	%sw%d	steal_%u\n", time, prefix, size, prefix, src, comid);
+		fprintf(out_paje_file, "19	%.9f	WSL	%sp	%u	%sw%d	steal_%u\n", time+0.000000001, prefix, size, prefix, dst, comid);
 #endif
 	}
 

+ 5 - 3
src/debug/traces/starpu_paje.c

@@ -239,8 +239,9 @@ void _starpu_fxt_write_paje_header(FILE *file STARPU_ATTRIBUTE_UNUSED)
 	poti_DefineVariableType("nready", "Sc", "Number of Ready Tasks", "0 0 0");
 
 	/* Link types */
-	poti_DefineLinkType("MPIL", "P", "MPICt", "MPICt", "Links between two MPI Communication Threads");
-	poti_DefineLinkType("L", "P", "Mm", "Mm", "Links between two Memory Managers");
+	poti_DefineLinkType("MPIL", "P", "MPICt", "MPICt", "MPI communications");
+	poti_DefineLinkType("L", "P", "Mm", "Mm", "Intra-node communications");
+	poti_DefineLinkType("WSL", "P", "W", "W", "Work steals");
 
 	/* Creating the MPI Program */
 	poti_CreateContainer(0, "MPIroot", "MPIP", "0", "root");
@@ -329,7 +330,8 @@ void _starpu_fxt_write_paje_header(FILE *file STARPU_ATTRIBUTE_UNUSED)
 6       CoA      MS     DriverCopyAsync         \".1 .3 .1\"		\n\
 6       No       MS     Nothing         \".0 .0 .0\"		\n\
 5       MPIL     P	MPICt	MPICt   MPIL			\n\
-5       L       P	Mm	Mm      L\n");
+5       L       P	Mm	Mm      L\n\
+5       WSL     P	W	W       WSL\n");
 
 	fprintf(file, "7      0.0 MPIroot      MPIP      0       root\n");
 #endif