]> AND Public Git Repository - simgrid.git/blobdiff - examples/smpi/compute3.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
smaller size so ctest don't give a timeout during tests
[simgrid.git] / examples / smpi / compute3.c
index 59e9ea30ef98a20288455a44b14b994f1277e03e..ed22bfce77a029777a48dc91e83b15f89c0f1e63 100644 (file)
@@ -1,4 +1,11 @@
+/* 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 <stdio.h>
+#include <mpi.h>
 
 int main(int argc, char *argv[])
 {
@@ -6,7 +13,7 @@ int main(int argc, char *argv[])
   double d;
   MPI_Init(&argc, &argv);
   d = 2.0;
-  SMPI_DO_ONCE {
+/*  SMPI_DO_ONCE */{
     for (i = 0; i < atoi(argv[1]); i++) {
       if (d < 10000) {
         d = d * d;
@@ -16,7 +23,7 @@ int main(int argc, char *argv[])
     }
     printf("%d %f\n", i, d);
   }
-  SMPI_DO_ONCE {
+/*  SMPI_DO_ONCE */{
     for (i = 0; i < 2 * atoi(argv[1]); i++) {
       if (d < 10000) {
         d = d * d;