Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Compile about every existing SMPI examples (reduce don't compile)
[simgrid.git] / src / smpi / sample / compute2.c
diff --git a/src/smpi/sample/compute2.c b/src/smpi/sample/compute2.c
deleted file mode 100644 (file)
index 153e1ba..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <stdio.h>
-
-int main(int argc, char *argv[]) {
-       int i;
-       double d;
-       MPI_Init(&argc, &argv);
-       d = 2.0;
-       SMPI_DO_ONCE {
-               for (i = 0; i < atoi(argv[1]); i++) {
-                       if (d < 10000) {
-                               d = d*d;
-                       } else {
-                               d = 2;
-                       }
-               }
-               printf("%d %f\n", i, d);
-       }
-       MPI_Finalize();
-       return 0;
-}