Browse Source

Add missing option to starpu_fxt_tool

Samuel Thibault 7 years ago
parent
commit
f0e73d042c
2 changed files with 9 additions and 0 deletions
  1. 1 0
      ChangeLog
  2. 8 0
      tools/starpu_fxt_tool.c

+ 1 - 0
ChangeLog

@@ -98,6 +98,7 @@ Small features:
     starpu_data_unpartition_submit_sequential_consistency()
   * Add a new value STARPU_TASK_SYNCHRONOUS to be used in
     starpu_task_insert() to define if the task is (or not) synchronous
+  * Add memory states events in the traces.
 
 Changes:
   * Vastly improve simgrid simulation time.

+ 8 - 0
tools/starpu_fxt_tool.c

@@ -42,6 +42,7 @@ static void usage()
 	fprintf(stderr, "   -no-smooth          avoid smoothing values for gflops etc.\n");
 	fprintf(stderr, "   -no-acquire         do not show application data acquisitions tasks in DAG\n");
 	fprintf(stderr, "   -label-deps         add label on dependencies.\n");
+	fprintf(stderr, "   -memory-states      show detailed memory states of handles\n");
 	fprintf(stderr, "   -internal           show StarPU-internal tasks in DAG\n");
 	fprintf(stderr, "   -h, --help          display this help and exit\n");
 	fprintf(stderr, "   -v, --version       output version information and exit\n\n");
@@ -125,6 +126,13 @@ static int parse_args(int argc, char **argv)
 			continue;
 		}
 
+		if (strcmp(argv[i], "-memory-states") == 0)
+		{
+			options.memory_states = 1;
+			reading_input_filenames = 0;
+			continue;
+		}
+
 		if (strcmp(argv[i], "-internal") == 0)
 		{
 			options.internal = 1;