소스 검색

debug/traces: always dump codelet details to trace.rec

When no paje.trace file is generated, codelet details (ie. Task states)
were not dumped to trace.rec. This has been reported by Alfredo Buttari.
Samuel Pitoiset 8 년 전
부모
커밋
9a008dbd7f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/debug/traces/starpu_fxt.c

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

@@ -1179,8 +1179,6 @@ static void handle_start_codelet_body(struct fxt_ev_64 *ev, struct starpu_fxt_op
 		unsigned sched_ctx = ev->param[1];
 		unsigned sched_ctx = ev->param[1];
 
 
 		worker_set_state(start_codelet_time, prefix, ev->param[2], name);
 		worker_set_state(start_codelet_time, prefix, ev->param[2], name);
-		if (trace_file)
-			recfmt_worker_set_state(start_codelet_time, ev->param[2], name, "Task");
 		if (sched_ctx != 0)
 		if (sched_ctx != 0)
 		{
 		{
 #ifdef STARPU_HAVE_POTI
 #ifdef STARPU_HAVE_POTI
@@ -1194,6 +1192,8 @@ static void handle_start_codelet_body(struct fxt_ev_64 *ev, struct starpu_fxt_op
 #endif
 #endif
 		}
 		}
 	}
 	}
+	if (trace_file)
+		recfmt_worker_set_state(start_codelet_time, ev->param[2], name, "Task");
 #endif /* STARPU_ENABLE_PAJE_CODELET_DETAILS */
 #endif /* STARPU_ENABLE_PAJE_CODELET_DETAILS */
 
 
 }
 }