소스 검색

Revert "there is no need to set these variables to zero when we are using the PajeSetVariable event only"

This reverts commit a1faac15397d523474ddcbe50417f65dc40dc6c4.
Lucas Schnorr 8 년 전
부모
커밋
2072c70a3d
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      src/debug/traces/starpu_fxt_mpi.c

+ 12 - 0
src/debug/traces/starpu_fxt_mpi.c

@@ -228,6 +228,18 @@ static void display_all_transfers_from_trace(FILE *out_paje_file, unsigned n)
 	char mpi_container[STARPU_POTI_STR_LEN];
 #endif
 
+	for (node = 0; node < n ; node++)
+	{
+#ifdef STARPU_HAVE_POTI
+		snprintf(mpi_container, sizeof(mpi_container), "%u_mpict", node);
+		poti_SetVariable(0., mpi_container, "bwi_mpi", 0.);
+		poti_SetVariable(0., mpi_container, "bwo_mpi", 0.);
+#else
+		fprintf(out_paje_file, "13	%.9f	%u_mpict	bwi_mpi	%f\n", 0., node, 0.);
+		fprintf(out_paje_file, "13	%.9f	%u_mpict	bwo_mpi	%f\n", 0., node, 0.);
+#endif
+	}
+
 	mpi_transfer_list_init(&pending_receives);
 
 	while (1)