From: Arnaud Giersch Date: Wed, 30 Jan 2013 15:25:30 +0000 (+0100) Subject: Remove unused file. X-Git-Tag: v3_9_rc1~5 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/61b17fae2ddf9cf1477f6de143e617d2f44ad3a9 Remove unused file. --- diff --git a/src/smpi/sample/reduce.c b/src/smpi/sample/reduce.c deleted file mode 100644 index f7321d6028..0000000000 --- a/src/smpi/sample/reduce.c +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright (c) 2007, 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 -#include - -int main(int argc, char **argv) -{ - int size, rank; - int root = 0; - int value = 1; - int sum = -99; - - double start_timer; - - - MPI_Init(&argc, &argv); - MPI_Comm_size(MPI_COMM_WORLD, &size); - MPI_Comm_rank(MPI_COMM_WORLD, &rank); - - start_timer = MPI_Wtime(); - - printf("rank %d has value %d\n", rank, value); - MPI_Reduce(&value, &sum, 1, MPI_INT, MPI_SUM, root, MPI_COMM_WORLD); - if (rank == root) { - printf("On root: sum=%d\n", sum); - printf("Elapsed time=%lf s\n", MPI_Wtime() - start_timer); - } - MPI_Finalize(); - return 0; -}