X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8bf0e23b7f0a6ee8695d56fae94785f07f551fff..025965074dbe4c1b04466cc260260470f28b7472:/src/smpi/sample/bcast.c diff --git a/src/smpi/sample/bcast.c b/src/smpi/sample/bcast.c deleted file mode 100644 index 2d84c1371e..0000000000 --- a/src/smpi/sample/bcast.c +++ /dev/null @@ -1,18 +0,0 @@ -#include -#include - -int main (int argc, char **argv) { - int size, rank; - int value = 3; - MPI_Init(&argc, &argv); - MPI_Comm_size(MPI_COMM_WORLD, &size); - MPI_Comm_rank(MPI_COMM_WORLD, &rank); - if (0 == rank) { - value = 17; - } - printf("node %d has value %d\n", rank, value); - MPI_Bcast(&value, 1, MPI_INT, 0, MPI_COMM_WORLD); - printf("node %d has value %d\n", rank, value); - MPI_Finalize(); - return 0; -}