Browse Source

src/core/perfmodel/perfmodel_bus.c: Do not use NAN as an initializer.

NAN is a not a compile-time constant in some C libraries (NetBSD's libc, for example).
Cyril Roelandt 13 years ago
parent
commit
eec69bb50a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/perfmodel/perfmodel_bus.c

+ 2 - 2
src/core/perfmodel/perfmodel_bus.c

@@ -54,8 +54,8 @@ struct dev_timing
 	double timing_dtoh;
 };
 
-static double bandwidth_matrix[STARPU_MAXNODES][STARPU_MAXNODES] = {{NAN}};
-static double latency_matrix[STARPU_MAXNODES][STARPU_MAXNODES] = {{NAN}};
+static double bandwidth_matrix[STARPU_MAXNODES][STARPU_MAXNODES];
+static double latency_matrix[STARPU_MAXNODES][STARPU_MAXNODES];
 static unsigned was_benchmarked = 0;
 static unsigned ncpus = 0;
 static int ncuda = 0;