A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Compile reduce example
[simgrid.git]
/
examples
/
smpi
/
barrier.c
1
#include <stdio.h>
2
#include <mpi.h>
3
4
5
int main (int argc, char **argv) {
6
int size, rank;
7
int root=0;
8
int value;
9
double start_timer;
10
11
MPI_Init(&argc, &argv);
12
MPI_Comm_size(MPI_COMM_WORLD, &size);
13
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
14
15
16
MPI_Barrier( MPI_COMM_WORLD );
17
MPI_Barrier( MPI_COMM_WORLD );
18
19
MPI_Finalize();
20
return 0;
21
}
22