浏览代码

Fix initialization of paje variables

Samuel Thibault 10 年之前
父节点
当前提交
6b13895a35
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/debug/traces/starpu_fxt.c

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

@@ -1669,7 +1669,8 @@ void _starpu_fxt_parse_new_file(char *filename_in, struct starpu_fxt_options *op
 			scheduler_container_alias(new_scheduler_container_alias, STARPU_POTI_STR_LEN, prefix);
 			scheduler_container_alias(new_scheduler_container_alias, STARPU_POTI_STR_LEN, prefix);
 			snprintf(new_scheduler_container_name, STARPU_POTI_STR_LEN, "scheduler %s", prefix);
 			snprintf(new_scheduler_container_name, STARPU_POTI_STR_LEN, "scheduler %s", prefix);
 			poti_CreateContainer(0.0, new_scheduler_container_alias, "Sc", new_program_container_alias, new_scheduler_container_name);
 			poti_CreateContainer(0.0, new_scheduler_container_alias, "Sc", new_program_container_alias, new_scheduler_container_name);
-			poti_SetVariable(0.0, new_scheduler_container_alias, "ntask", 0.0);
+			poti_SetVariable(0.0, new_scheduler_container_alias, "nsubmitted", 0.0);
+			poti_SetVariable(0.0, new_scheduler_container_alias, "nready", 0.0);
 		}
 		}
 #else
 #else
 		fprintf(out_paje_file, "7	0.0	%sp	P	MPIroot	%sprogram \n", prefix, prefix);
 		fprintf(out_paje_file, "7	0.0	%sp	P	MPIroot	%sprogram \n", prefix, prefix);
@@ -1677,7 +1678,8 @@ void _starpu_fxt_parse_new_file(char *filename_in, struct starpu_fxt_options *op
 		if (!options->no_counter)
 		if (!options->no_counter)
 		{
 		{
 			fprintf(out_paje_file, "7	%.9f	%ssched	Sc	%sp	scheduler\n", 0.0, prefix, prefix);
 			fprintf(out_paje_file, "7	%.9f	%ssched	Sc	%sp	scheduler\n", 0.0, prefix, prefix);
-			fprintf(out_paje_file, "13	0.0	%ssched	ntask	0.0\n", prefix);
+			fprintf(out_paje_file, "13	0.0	%ssched	nsubmitted	0.0\n", prefix);
+			fprintf(out_paje_file, "13	0.0	%ssched	nready	0.0\n", prefix);
 		}
 		}
 #endif
 #endif
 	}
 	}