X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/865f97c868ce92518b1cf4f23e23bd1b16b7917c..29af76860c8d693917872c2a0ed3d2a4c7a0388f:/examples/smpi/mvmul.c diff --git a/examples/smpi/mvmul.c b/examples/smpi/mvmul.c index 8706b8422b..b76a15d124 100644 --- a/examples/smpi/mvmul.c +++ b/examples/smpi/mvmul.c @@ -1,5 +1,6 @@ #include #include +#include #include #define ITERATIONS 10 @@ -13,9 +14,9 @@ int main(int argc, char *argv[]) int size, rank; int N, n, i, j, k, current_iteration, successful_iterations = 0; - double *matrix, *vector, *vcalc, *vcheck; + double *matrix = NULL, *vector = NULL, *vcalc, *vcheck; MPI_Status status; - struct timeval *start_time, *stop_time; + struct timeval *start_time = NULL, *stop_time = NULL; long parallel_usecs, parallel_usecs_total = 0, sequential_usecs, sequential_usecs_total = 0;