Browse Source

mpi/examples: fix code when numa is not available

Nathalie Furmento 11 years ago
parent
commit
61665af194

+ 1 - 2
mpi/examples/mpi_lu/plu_implicit_example.c

@@ -74,8 +74,7 @@ static void parse_args(int argc, char **argv)
 #ifdef STARPU_HAVE_LIBNUMA
 			numa = 1;
 #else
-			if (rank == 0)
-				fprintf(stderr, "Warning: libnuma is not available\n");
+			fprintf(stderr, "Warning: libnuma is not available\n");
 #endif
 		}
 

+ 1 - 2
mpi/examples/mpi_lu/plu_outofcore_example.c

@@ -76,8 +76,7 @@ static void parse_args(int argc, char **argv)
 #ifdef STARPU_HAVE_LIBNUMA
 			numa = 1;
 #else
-			if (rank == 0)
-				fprintf(stderr, "Warning: libnuma is not available\n");
+			fprintf(stderr, "Warning: libnuma is not available\n");
 #endif
 		}