1
1
Граф коммитов

8 Коммитов

Автор SHA1 Сообщение Дата
Brian Barrett
fdc8f69b84 * need to include iostream as well as stdio.h when doing the tricks with
MPI::SEEK_* because iostreams (well, ios_base, but I don't think that
    should be included directly) can use SEEK_* as values in an enum, which
    means that 'const int' is bad for them.
  * Remove now useless comments in the cxx example programs
  * include iostream after mpi.h so that our examples work with other MPI
    implementations that don't try to be as friendly with the constants.

Refs trac:387

This commit was SVN r12125.

The following Trac tickets were found above:
  Ticket 387 --> https://svn.open-mpi.org/trac/ompi/ticket/387
2006-10-16 14:20:31 +00:00
Jeff Squyres
18e34484fa Refs trac:387
* Document --disable-mpi-cxx-seek
 * Document that you need to include "mpi.h" after system-level
   headers that create the SEEK_* constants
 * Make the C++ examples follow this behavior (include "mpi.h" after
   <iostream>)

This commit was SVN r12123.

The following Trac tickets were found above:
  Ticket 387 --> https://svn.open-mpi.org/trac/ompi/ticket/387
2006-10-16 13:22:22 +00:00
Jeff Squyres
a4378a6643 Re-define the order of #includes because MPI's C++ bindings
unfortunately redefined some C library constants (SEEK_SET, SEEK_CUR,
SEEK_END).  Scheesh -- who designed those bindings, anyway?

Most <stdio.h>'s and <iostream>'s are sane enough that if those values
are already #define'd, they won't redefine them.  So various other
MPI's out there have counseled that if you want to compile with the
C++ MPI bindings, ensure to include "mpi.h" before <iostream> or
<stdio.h> (in C++ source files).

This commit was SVN r11511.
2006-08-31 18:16:27 +00:00
Rolf vandeVaart
726e92e3c5 Create some simple examples of how to use DTrace
with Open MPI.  Sill need to finalize on the
Makefile so this gets included in distribution.

Reviewed by: Jeff Squyres

This commit was SVN r11151.
2006-08-10 20:09:19 +00:00
Jeff Squyres
1057120057 Arrgh - missing ":" in the output (to make it like the others).
This commit was SVN r11137.
2006-08-08 21:35:38 +00:00
Jeff Squyres
0757dfba42 A few more cleanups
This commit was SVN r11135.
2006-08-08 19:43:21 +00:00
Jeff Squyres
13dd02a9f4 - Convert MPI_Init(NULL, NULL) to MPI_Init(&argc, &argv) because
apparently some people are using these examples to test other MPI's,
  and some of those MPI's don't handle MPI_Init(NULL, NULL) properly.
  :-)
- Add comments and a print statement to the f90 example to make it
  like the others.

This commit was SVN r11123.
2006-08-08 13:01:17 +00:00
Jeff Squyres
cc4b980291 Something I've been working on with low bandwidth over the past
several weeks: marshaling hello world and ring examples in all 4
languages (C, C++, F77, F90), making them consistent and pretty, and
adding them to the build system in a non-intrusive way.

This commit was SVN r10792.
2006-07-13 21:03:36 +00:00