Просмотр исходного кода

Use the proper arguments in the FxT even to find the name of the codelet

Cédric Augonnet лет назад: 14
Родитель
Сommit
2a2eaf9b5b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/debug/traces/starpu_fxt.c

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

@@ -329,8 +329,8 @@ static void handle_start_codelet_body(struct fxt_ev_64 *ev, struct starpu_fxt_op
 
 	char *prefix = options->file_prefix;
 
-	unsigned long has_name = ev->param[4];
-	char *name = has_name?(char *)&ev->param[5]:"unknown";
+	unsigned long has_name = ev->param[2];
+	char *name = has_name?(char *)&ev->param[3]:"unknown";
 
 	snprintf(last_codelet_symbol[worker], 128, "%s", name);