root/ompi/mpiext/example/tests/progress_c.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. main

   1 /*
   2  * Copyright (c) 2006-2012 Cisco Systems, Inc.  All rights reserved.
   3  * $COPYRIGHT$
   4  *
   5  * Sample "example" MPI extension application for Open MPI
   6  */
   7 
   8 #include <stdio.h>
   9 #include "mpi.h"
  10 #include "mpi-ext.h"
  11 
  12 int main(int argc, char* argv[])
  13 {
  14     int rank, size;
  15 
  16     MPI_Init(&argc, &argv);
  17     MPI_Comm_rank(MPI_COMM_WORLD, &rank);
  18     MPI_Comm_size(MPI_COMM_WORLD, &size);
  19 
  20     printf("Hello, world, I am %d of %d\n", rank, size);
  21     OMPI_Progress(3, MPI_COMM_WORLD);
  22 
  23     MPI_Finalize();
  24     return 0;
  25 }

/* [<][>][^][v][top][bottom][index][help] */