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
Teshsuite SMPI : execute from build dir.
[simgrid.git]
/
teshsuite
/
smpi
/
io-all
/
io-all.c
diff --git
a/teshsuite/smpi/io-all/io-all.c
b/teshsuite/smpi/io-all/io-all.c
index
72468b1
..
a05c21f
100644
(file)
--- a/
teshsuite/smpi/io-all/io-all.c
+++ b/
teshsuite/smpi/io-all/io-all.c
@@
-11,7
+11,6
@@
int main( int argc, char *argv[] )
int errs = 0;
int size;
int rank;
int errs = 0;
int size;
int rank;
- int i;
int* buf;
int count;
MPI_File fh;
int* buf;
int count;
MPI_File fh;
@@
-63,7
+62,8
@@
int main( int argc, char *argv[] )
MPI_Barrier( comm );
MPI_File_seek( fh, sizeof(int)*rank, MPI_SEEK_SET );
MPI_Barrier( comm );
MPI_File_seek( fh, sizeof(int)*rank, MPI_SEEK_SET );
- for (i=0; i<size; i++) buf[i] = -1;
+ for (int i = 0; i < size; i++)
+ buf[i] = -1;
MPI_File_read_all( fh, buf, 10, MPI_INT, &status );
// if (buf[0] != rank) {
// errs++;
MPI_File_read_all( fh, buf, 10, MPI_INT, &status );
// if (buf[0] != rank) {
// errs++;