Selaa lähdekoodia

src: use _STARPU_DISP instead of fprintf

Nathalie Furmento 10 vuotta sitten
vanhempi
commit
ee8f7f89f8
2 muutettua tiedostoa jossa 3 lisäystä ja 6 poistoa
  1. 1 3
      src/debug/traces/starpu_fxt.c
  2. 2 3
      src/debug/traces/starpu_fxt_mpi.c

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

@@ -2328,9 +2328,7 @@ void starpu_fxt_generate_trace(struct starpu_fxt_options *options)
 		{
 			int filerank = rank_k[inputfile];
 
-#ifdef STARPU_VERBOSE
-			fprintf(stderr, "Handle file %s (rank %d)\n", options->filenames[inputfile], filerank);
-#endif
+			_STARPU_DISP("Parsing file %s (rank %d)\n", options->filenames[inputfile], filerank);
 
 			char file_prefix[32];
 			snprintf(file_prefix, sizeof(file_prefix), "%d_", filerank);

+ 2 - 3
src/debug/traces/starpu_fxt_mpi.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2012-2013  Université Bordeaux
- * Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2014  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -241,8 +241,7 @@ static void display_all_transfers_from_trace(FILE *out_paje_file, int src)
 		}
 		else
 		{
-			fprintf(stderr, "Warning, could not match MPI transfer from %d to %d (tag %x) starting at %f\n",
-												src, dst, mpi_tag, start_date);
+			_STARPU_DISP("Warning, could not match MPI transfer from %d to %d (tag %x) starting at %f\n", src, dst, mpi_tag, start_date);
 		}
 
 	}