Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
put the LGPL 2.1 in a specific file. This should make COPYING a bit easier to read
[simgrid.git] / examples / smpi / second.c
index 2c80d60..e34a212 100644 (file)
 /* your hostfile, do 'mpirun -machinefile hostfile -np 4 first    */
 
 #include <stdio.h>
+#include <unistd.h>
 #include <mpi.h>
 
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
   const int tag = 42;           /* Message tag */
   int id, ntasks, source_id, dest_id, err, i;