Преглед на файлове

Do not define colors for undefined Ctx0

Samuel Thibault преди 11 години
родител
ревизия
39cf0245f7
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/debug/traces/starpu_fxt.c

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

@@ -517,7 +517,7 @@ static void create_paje_state_if_not_found(char *name, struct starpu_fxt_options
 #ifdef STARPU_HAVE_POTI
 		create_paje_state_color(name, "S", red, green, blue);
 		int i;
-		for(i = 0; i < STARPU_NMAX_SCHED_CTXS; i++)
+		for(i = 1; i < STARPU_NMAX_SCHED_CTXS; i++)
 		{
 			char ctx[10];
 			snprintf(ctx, sizeof(ctx), "Ctx%d", i);
@@ -556,7 +556,7 @@ static void create_paje_state_if_not_found(char *name, struct starpu_fxt_options
 #else
 		fprintf(out_paje_file, "6	%s	S	%s	\"%f %f %f\" \n", name, name, red, green, blue);
 		int i;
-		for(i = 0; i < STARPU_NMAX_SCHED_CTXS; i++)
+		for(i = 1; i < STARPU_NMAX_SCHED_CTXS; i++)
 		{
 			if(i%10 == 1)
 				fprintf(out_paje_file, "6	%s	Ctx%d	%s	\"255.0 102.0 255.0\" \n", name, i, name);