瀏覽代碼

Add name of StarPU internal tasks in tasks.rec

Philippe SWARTVAGHER 5 年之前
父節點
當前提交
0ce263c5f4
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/debug/traces/starpu_fxt.c

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

@@ -2878,6 +2878,9 @@ static void handle_task_name(struct fxt_ev_64 *ev, struct starpu_fxt_options *op
 		colour= (worker < 0)?"#aaaaaa":get_worker_color(worker);
 	}
 
+	if (!task->name)
+		task->name = strdup(name);
+
 	unsigned exclude_from_dag = ev->param[2];
 	task->exclude_from_dag = exclude_from_dag;