A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: forgot to properly update migration.tesh
[simgrid.git]
/
examples
/
smpi
/
mvmul.c
diff --git
a/examples/smpi/mvmul.c
b/examples/smpi/mvmul.c
index
8706b84
..
b76a15d
100644
(file)
--- a/
examples/smpi/mvmul.c
+++ b/
examples/smpi/mvmul.c
@@
-1,5
+1,6
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
+#include <ctype.h>
#include <mpi.h>
#define ITERATIONS 10
#include <mpi.h>
#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;
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;
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;
long parallel_usecs, parallel_usecs_total =
0, sequential_usecs, sequential_usecs_total = 0;