1
1
openmpi/examples
2012-02-21 09:51:16 +00:00
..
dtrace Updated README to use the OMPI_COMM_WORLD_RANK instead of the old vpid env-var. 2008-08-05 11:31:45 +00:00
connectivity_c.c Add simple test that sends a message between all the ranks in the job. 2007-02-28 21:38:02 +00:00
hello_c.c Add the new MPI-3 function MPI_GET_LIBRARY_VERSION. 2012-02-02 23:57:09 +00:00
hello_cxx.cc Add the new MPI-3 function MPI_GET_LIBRARY_VERSION. 2012-02-02 23:57:09 +00:00
hello_f77.f Add the new MPI-3 function MPI_GET_LIBRARY_VERSION. 2012-02-02 23:57:09 +00:00
hello_f90.f90 Add the new MPI-3 function MPI_GET_LIBRARY_VERSION. 2012-02-02 23:57:09 +00:00
Hello.java Roll in Java bindings per telecon discussion. Man pages still under revision 2012-02-20 22:12:43 +00:00
Makefile Minor touch-ups to the examples, courtesy of Paul Hargrove with a minor tweak 2012-02-21 09:51:16 +00:00
Makefile.include Roll in Java bindings per telecon discussion. Man pages still under revision 2012-02-20 22:12:43 +00:00
README Roll in Java bindings per telecon discussion. Man pages still under revision 2012-02-20 22:12:43 +00:00
ring_c.c - Convert MPI_Init(NULL, NULL) to MPI_Init(&argc, &argv) because 2006-08-08 13:01:17 +00:00
ring_cxx.cc * need to include iostream as well as stdio.h when doing the tricks with 2006-10-16 14:20:31 +00:00
ring_f77.f A few more cleanups 2006-08-08 19:43:21 +00:00
ring_f90.f90 Arrgh - missing ":" in the output (to make it like the others). 2006-08-08 21:35:38 +00:00
Ring.java Roll in Java bindings per telecon discussion. Man pages still under revision 2012-02-20 22:12:43 +00:00

Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
                        University Research and Technology
                        Corporation.  All rights reserved.
Copyright (c) 2006-2011 Cisco Systems, Inc.  All rights reserved.
Copyright (c) 2007-2009 Sun Microsystems, Inc.  All rights reserved.
Copyright (c) 2010      Oracle and/or its affiliates.  All rights reserved.

The files in this directory are sample MPI applications provided both
as a trivial primer to MPI as well as simple tests to ensure that your
Open MPI installation is working properly.

If you are looking for a comprehensive MPI tutorial, these samples are
not enough.  Excellent MPI tutorials are available here:

        http://www.citutor.org/login.php

Get a free account and login; you can then browse to the list of
available courses.  Look for the ones with "MPI" in the title.

There are 2 MPI examples in this directory, each in five languages:

- Hello world
  C:    hello_c.c
  C++:  hello_cxx.cc
  F77:  hello_f77.f
  F90:  hello_f90.f90
  Java: Hello.java

- Send a trivial message around in a ring
  C:    ring_c.c
  C++:  ring_cxx.cc
  F77:  ring_f77.f
  F90:  ring_f90.f90
  Java: Ring.java

- Test the connectivity between all processes
  C:   connectivity_c.c

The Makefile in this directory will build as many of the examples as
you have language support (e.g., if you do not have F90 bindings
compiled as part of Open MPI, the F90 examples will be skipped).

The Makefile assumes that the wrapper compilers mpicc, mpic++, mpif77,
and mpif90 are in your path.

Although the Makefile is tailored for Open MPI (e.g., it checks the
"ompi_info" command to see if you have support for C++, F77, and F90),
all of the example programs are pure MPI, and therefore not specific
to Open MPI.  Hence, you can use a different MPI implementation to
compile and run these programs if you wish.

Make today an Open MPI day!