浏览代码

src/debug/traces/starpu_fxt.c: do nothing when no input files are provided

Nathalie Furmento 12 年之前
父节点
当前提交
5eafd44d11
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/debug/traces/starpu_fxt.c

+ 5 - 1
src/debug/traces/starpu_fxt.c

@@ -1174,7 +1174,11 @@ void starpu_fxt_generate_trace(struct starpu_fxt_options *options)
 
 
 	starpu_fxt_paje_file_init(options);
 	starpu_fxt_paje_file_init(options);
 
 
-	if (options->ninputfiles == 1)
+	if (options->ninputfiles == 0)
+	{
+	     return;
+	}
+	else if (options->ninputfiles == 1)
 	{
 	{
 		/* we usually only have a single trace */
 		/* we usually only have a single trace */
 		uint64_t file_start_time = starpu_fxt_find_start_time(options->filenames[0]);
 		uint64_t file_start_time = starpu_fxt_find_start_time(options->filenames[0]);