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
onelink_routes revision: removing a comment
[simgrid.git]
/
examples
/
smpi
/
alltoall_basic.c
diff --git
a/examples/smpi/alltoall_basic.c
b/examples/smpi/alltoall_basic.c
index
12bc44d
..
56aa80e
100644
(file)
--- a/
examples/smpi/alltoall_basic.c
+++ b/
examples/smpi/alltoall_basic.c
@@
-1,3
+1,9
@@
+/* Copyright (c) 2009, 2010. The SimGrid Team.
+ * All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
#include "mpi.h"
#include <stdlib.h>
#include <stdio.h>
#include "mpi.h"
#include <stdlib.h>
#include <stdio.h>
@@
-15,7
+21,7
@@
int main( int argc, char *argv[] )
int i;
int *sb;
int *rb;
int i;
int *sb;
int *rb;
- int status
, gstatus
;
+ int status;
MPI_Init(&argc,&argv);
MPI_Comm_rank(MPI_COMM_WORLD,&rank);
MPI_Init(&argc,&argv);
MPI_Comm_rank(MPI_COMM_WORLD,&rank);
@@
-45,8
+51,8
@@
int main( int argc, char *argv[] )
if (rank == 0) {
if (rank == 0) {
- if (
g
status != 0) {
- printf("all_to_all returned %d\n",
g
status);fflush(stdout);
+ if (status != 0) {
+ printf("all_to_all returned %d\n",status);fflush(stdout);
}
}
free(sb);
}
}
free(sb);