Explorar o código

Fix crash when parsing multiple MPI traces

Samuel Thibault %!s(int64=6) %!d(string=hai) anos
pai
achega
34df1b0633
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/debug/traces/starpu_fxt.c

+ 2 - 0
src/debug/traces/starpu_fxt.c

@@ -4002,6 +4002,7 @@ void _starpu_fxt_parse_new_file(char *filename_in, struct starpu_fxt_options *op
 			{
 				STARPU_ASSERT(!comp->peer);
 				_starpu_computation_list_erase(&computation_list, comp);
+				ongoing_computation[i] = 0;
 			}
 		}
 		/* And flush completed computations */
@@ -4023,6 +4024,7 @@ void _starpu_fxt_parse_new_file(char *filename_in, struct starpu_fxt_options *op
 				fprintf(out_paje_file, "13	%.9f	%sw%u	gf	%f\n",
 						last_codelet_end[i], prefix, i, 0.);
 #endif
+				last_codelet_end[i] = 0.0;
 			}
 		}