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

94 Коммитов

Автор SHA1 Сообщение Дата
Jeff Squyres
76f2125c98 Fix some compiler warnings (specifically, from icc v8.0)
This commit was SVN r4093.
2005-01-21 13:54:38 +00:00
Prabhanjan Kambadur
9ac9f15537 These are the changes after the review with Jeff. Mostly are fixes for OOB and TCP
This commit was SVN r4070.
2005-01-20 00:03:23 +00:00
Jeff Squyres
3966e30902 Remove every part of MPI-2 one-sided functionality from the tree with
#if OMPI_WANT_MPI2_ONE_SIDED and some automake conditionals.  Also had
to add some AC_SUBSTs to eliminate part of mpif.h (otherwise the
"external" statements would have made undefined symbols).

All the MPI-2 one-sided functionality (including the skeleton
top-level MPI API functions that only invoke an MPI exception) can be
re-enabled with --enable-mpi2-one-sided.

This commit was SVN r3802.
2004-12-14 02:35:03 +00:00
Jeff Squyres
ac5f313af8 First cut at non-blocking IO progress. No asychronous progress
support is included because ROMIO is inherently thread-unsafe.

One possible way to have true asynchronous progress would be to use a
progress thread that wakes up and polls at some frequency when there
are non-blocking IO requests pending.  This is pretty icky, though --
it should definitely have an MCA parameter to enable/disable this
functionality, as well as another to control the polling frequency.

This also strengthens the argument that we need a v2 of the io
framework -- one that is not designed to exclusively support ROMIO --
one that does something unimaginably "better" for the parallel MPI-2
IO interface.  :-)

This commit was SVN r3786.
2004-12-12 15:29:29 +00:00
Jeff Squyres
616269a9be Add HLRS copyright
This commit was SVN r3665.
2004-11-28 20:09:25 +00:00
Jeff Squyres
0c05204c13 Arf -- didn't test the OMPI_DEBUG_ZERO with an optimized build, and it
caused the nightlies to fail.  Move the definition of OMPI_DEBUG_ZERO
up to ompi_config_bottom.h and now all is well.

This commit was SVN r3664.
2004-11-27 12:43:19 +00:00
Jeff Squyres
d39fbd7958 - Remove "ompi_config.h" from util/malloc.h. malloc.h is only ever
included by ompi_config_bottom.h, so it's redundant to include
  ompi_config.h in it.
- Add OMPI_DEBUG_ZERO macro for zeroing out memory while debugging so
  that valgrind (et al.) don't complain about uninitialized memory
  when we know it's safe.
- correct a comment in ompi_config_bottom.h to make it have the
  correct filename

This commit was SVN r3662.
2004-11-26 22:13:52 +00:00
Rainer Keller
ce215e607c Fix a small buglet for typedef'ing bool-types on systems/compilers
without this type.

This commit was SVN r3657.
2004-11-24 10:48:31 +00:00
Jeff Squyres
e9ed717748 First cut at copyrights: IU, UTK, and some OSU. LANL and HLRS still
pending.

This commit was SVN r3655.
2004-11-22 01:38:40 +00:00
Prabhanjan Kambadur
5cac9a3498 making some changes to ompi_config_bottom and also changing the logic for windows portion of ompi_empty_dir
This commit was SVN r3480.
2004-11-02 21:48:31 +00:00
Prabhanjan Kambadur
fe98e6e0ed some more changes which are required
This commit was SVN r3473.
2004-11-02 15:14:04 +00:00
Prabhanjan Kambadur
4d4bc1d3ee some oter stupid things i missed out on. changing BOOL to be defined only if we are building the library, not needed otherwise. moving OMPI_DECLSPEC to the top
This commit was SVN r3469.
2004-11-02 13:22:08 +00:00
Jeff Squyres
1a0a3428ea Check for __func__, per suggestion from Ranier (oops; thought I had
already committed this :D )

This commit was SVN r3442.
2004-10-29 19:14:11 +00:00
Prabhanjan Kambadur
e2e3bead65 fixing up small mistakes
This commit was SVN r3399.
2004-10-28 19:12:45 +00:00
Jeff Squyres
c99a202fa3 Make value of BSEND_OVERHEAD match what is in mpi.h
This commit was SVN r3358.
2004-10-26 21:55:44 +00:00
Jeff Squyres
eb4267d6d2 George pointed out last night that I didn't take into account the fact
that the C compiler may support bool with no help from <stdbool.h>.
So add another configure test and adjust ompi_config_bottom.h as
appropriate.  Since the #if logic in ompi_config_bottom.h got a little
complicated w.r.t. bool, I indented to make the conditionals clear.

This commit was SVN r3291.
2004-10-22 20:30:59 +00:00
George Bosilca
72bc6ad0a6 Remove OMPI_DECLSPEC from the typedefs.
This commit was SVN r3288.
2004-10-22 17:47:53 +00:00
Prabhanjan Kambadur
4257467fec this is the big windows commit. there are more things which have gone into this than i can remember. but basically, we are looking for
1. header file and source file protections using #ifdef WIN32
2. new files and directories to support windows functionality
3. appropritate linkage symbols added (OMPI_DECLSPEC) for windows
4. some functions are unimplemented on the windows side. this is mostly
because there might not be need to implement it in windows land. eg., forking
a daemon off
5. Introduced locking mechanisms for windows

This commit was SVN r3286.
2004-10-22 16:06:05 +00:00
Jeff Squyres
303c38cde9 Fix for bug 1030 -- ensure C and C++ bool's are the same size and
alignment.  Right now, we only check for char, short, and int.  If we
ever run across a platform where one of those three don't work, we'll
need to extend ompi_config_bottom.h.  :-)

This commit was SVN r3271.
2004-10-21 19:57:00 +00:00
Prabhanjan Kambadur
dac14aaf94 committing the header file fixes for protection against C++ name mangling. This is a hge commit. Please make sure that your files are protected right. There is some redundan protection in that the protection has been added right at teh beginning and at teh end ion some cases even thught typedefs are not requred to be protected. But this was done in order to have teh minimal change to the code base
This commit was SVN r3246.
2004-10-20 22:31:03 +00:00
Tim Woodall
d23227214a increased bsend overhead
This commit was SVN r3211.
2004-10-19 20:53:15 +00:00
Brian Barrett
c360c8c490 * Make sure we get all the MAX/MIN values when using a C++ compiler so that
the nameserver includes are correct when using a C++ compiler

This commit was SVN r3196.
2004-10-18 16:08:35 +00:00
Jeff Squyres
2d5c0d1edc These declarations are repeated in src/util/printf.h, and apparently
everywhere in the tree that uses these functions includes that header
file.  So these are redundant.

This commit was SVN r3188.
2004-10-16 12:36:53 +00:00
Jeff Squyres
5686df5a37 - The declaration for ompi_mpi_param_check really didn't belong in
ompi_config_bottom.h -- it's already in src/mpi/runtime/params.h.
- Add /src/mpi/runtime/params.h to a small number of places.
- Remove some useless run-time checks in MPI fortran functions

This commit was SVN r3177.
2004-10-15 21:50:59 +00:00
Brian Barrett
d7528d1fd3 * remove the pre-ANSI C vararg code, only have the ANSI-C stdarg code
This commit was SVN r3138.
2004-10-14 19:39:21 +00:00
Tim Woodall
0df8ca90ea small re-org of request completion - moved test/wait out of pml
This commit was SVN r3066.
2004-10-12 15:50:01 +00:00
Jeff Squyres
80b38390ab Enable proper f2c <--> c2f MPI_Request translation. Pick up f2c <-->
c2f MPI_Status translation along the way.  This should enable Fortran
MPI apps that use non-blocking communication to start working.

This commit was SVN r2996.
2004-10-08 17:12:36 +00:00
Jeff Squyres
cd6fd000df Oops -- I didn't check that *all* datatypes were added into the f_to_c
table in my last commit.  This commit fixes that, and then re-patches
up mpif.h.in to match.

I'm not sure that we need *all* of the datatypes in there (e.g., do we
really need the C datatypes?), but since George isn't around, I
followed the "when in doubt, it doesn't hurt to add more entries to
the table" rule.  Following up with a detailed message to George...

This commit was SVN r2900.
2004-09-30 22:14:35 +00:00
Jeff Squyres
1f668625d3 Update some fortran constants
This commit was SVN r2888.
2004-09-30 15:55:40 +00:00
Jeff Squyres
8bef16d214 - some OS's #define malloc, calloc, free, realloc -- ensure to #undef
them when necessary
- we didn't have the re-definition for calloc

This commit was SVN r2863.
2004-09-27 17:15:06 +00:00
Jeff Squyres
95ce0f3f64 - Fix the #endif for cplusplus
- Revise the comment to be a little more accurate in its explanation
  :-)

This commit was SVN r2855.
2004-09-24 10:02:23 +00:00
Prabhanjan Kambadur
291d7bfcaf Including the weird definitions for windoze function exporting
This commit was SVN r2845.
2004-09-23 16:14:04 +00:00
Edgar Gabriel
eae5533433 fixing MPI_ERR_LASTCODE in C and fortran
fixing the result of the Comm/group compare operations, 
since the enum in C starts with 0 and not with 1 :-)

This commit was SVN r2803.
2004-09-22 16:59:10 +00:00
Jeff Squyres
2137897b31 Oops! That change should not have been committed yet -- backing out...
This commit was SVN r2789.
2004-09-21 00:29:03 +00:00
Jeff Squyres
8724f59dbb Fix more fortran values
This commit was SVN r2786.
2004-09-21 00:25:08 +00:00
Jeff Squyres
017df2797b Update fortran constants for op's
This commit was SVN r2781.
2004-09-20 19:22:00 +00:00
George Bosilca
7707eedb51 Some additions for MPI2. At the page 297 in the MPI2 standard several new predefined datatypes are introducted.
This commit was SVN r2762.
2004-09-19 10:16:00 +00:00
Jeff Squyres
f559b54df4 Update some more mpif.h values -- still need to do something about
MPI_REQUEST_NULL, though.

This commit was SVN r2758.
2004-09-19 07:39:44 +00:00
George Bosilca
6788ad6681 The new datatype engine. With this commit the engine is completly imported in OpenMPI.
Better memory handling, faster it adapt it's behaviour to the low level driver and to the
datatype representation. However, only the TCP driver has been modified to fit the new engine.

For Fortran the MPI_DATATYPE_NULL is now registered at index 0 in the translation table.

This commit was SVN r2757.
2004-09-19 07:20:24 +00:00
George Bosilca
3482ab96d6 Update the definition of the Fortran MPI_DATATYPE_NULL.
This commit was SVN r2752.
2004-09-19 03:50:30 +00:00
Jeff Squyres
eb4279559e Some fixes for the attribute code:
- move the attribute init section in ompi_mpi_init() down below where
  communicators are setup (we need MPI_COMM_WORLD to be setup before
  attributes and keyvals are setup)
- removed confusing extra wrapper class around ompi_hash_table_t;
  looks like it was a victim of slow eroding of members so I put took
  it out back and put it out of its misery
- added preliminary definitions for all the pre-defined keyvals.
  Still need more work here to assign their initial values, but I
  think Edgar was running into an atrribute problem and it may have
  been that the pre-defined attrs didn't yet exist.
- removed some LAM-specific predefined keyvals from mpi.h

This commit was SVN r2695.
2004-09-16 00:00:09 +00:00
Jeff Squyres
f6f0cccbec First cut of MPI_File / io MCA component framework. This also
includes the romio component.  Only blocking operations are supported
-- non-blocking stuff is pending some changes in the top-level
progression engine, and some threaded issues need to be worked out.

This commit was SVN r2655.
2004-09-14 10:55:10 +00:00
Jeff Squyres
434a09fbf1 Fix a bad MPI function prototype
This commit was SVN r2529.
2004-09-07 21:38:46 +00:00
Jeff Squyres
2fc9f9181f Some infrastructure help for the F77 bindings:
- added src/mpi/f77/strings.[ch] for f<-->c string conversions
- added src/mpi/f77/constants* for instiantiating and providing macros
  to check for the various fortran address "constants" (read the
  comments in this file -- it's quite complicated, unfortunately :-\ ):
  - MPI_BOTTOM
  - MPI_ARGV_NULL
  - MPI_ARGVS_NULL
  - MPI_ERRCODES_IGNORE
  - MPI_STATUS_IGNORE
  - MPI_STATUSES_IGNORE
- updated fortran MPI_COMM_SET_NAME and MPI_COMM_GET_NAME to check
  string handling
- updated fortran MPI_RECV to check MPI_STATUS_IGNORE handling
- updated fortran MPI_COMM_SPAWN to check string and MPI_ARGV_NULL and
  MPI_ERRCODES_IGNORE handling
- partially modified src/mpi/f77/prototypes_mpi.h to account for
  string length parameters passed by the fortran compiler; more work to
  be done there
- backed out a silly previous change in send_f.c by me (duh)
- updated fortran MPI_COMM_DUP and MPI_COMM_FREE to check int<-->fint
  macros 

This commit was SVN r2512.
2004-09-04 22:02:18 +00:00
George Bosilca
f9114b22a6 Removing the complaint about the attribute functions when we compile a C++ file.
Second level commit log: "The Great and Powerful Jeff Squyres figured out and fixed this bug remotely. All praise Jeff." ;) yup yup

This commit was SVN r2304.
2004-08-25 17:44:06 +00:00
David Daniel
5ce8144d91 Probably an unpopular change, but...
In order to get consistent behaviour on linux with various gcc versions,
I am defining _GNU_SOURCE in ompi_config.h and changing the definition
of asprintf, etc.

Problems:
1) autoconf was defining _GNU_SOURCE for its tests, but we were not
setting it
2) g++ sets it by default (I think)
3) some version of gcc set it by default

If somebody knows a consistent solution for these problems then we can
revert to not setting it.

This commit was SVN r2230.
2004-08-19 19:27:15 +00:00
David Daniel
e865b75241 fixes for Solaris
This commit was SVN r2155.
2004-08-15 23:54:30 +00:00
Jeff Squyres
cfd5524ad5 Committing several things under one commit, but they're all at least
somewhat tied together and I'd rather have a consistent commit rather
than several smaller commits that individually break the tree:
- first cut of src/file/file.c: MPI_File handling.  More to come here.
- tweaked MPI_Info handling a bit: cause MPI_Info_f2c to invoke error
  handler if provided index is out of range (vs. returing
  MPI_INFO_NULL without invoking an error handler)
- moved general MPI MCA params off into their own .h and .c file (so
  that ompi_info can call it and therefore display MPI MCA params)
- first [abbreviated] cut of src/mca/io/base/* -- much more to come
  here; stripped down to basics for this commit
- filled in a small number of MPI_File* functions for testing purposes
- updated a bunch of doxygen docs
--> Unresolved questions about MPI_ERRORS_RETURN, MPI_ERRORS_ABORT,
    and MPI::ERRORS_THROW_EXCEPTIONS because of vagueness in MPI
    standard -- Edgar and I are discussing what to do here
--> Unresolved questions about what to do in a case like this:
      MPI_File_open(..., &file);
      MPI_File_close(&file);
      MPI_File_read(..., &file);
    because MPI-2:9.7 says that the default error handler on MPI_File
    handles is MPI_ERRORS_RETURN -- we can't even print a warning
    here!  This certainly violates the Law of Least Astonishment for
    MPI users (who certainly expect MPI functions that fail to
    complain loudly and to abort by default).

This commit was SVN r2136.
2004-08-14 01:56:05 +00:00
Jeff Squyres
50ef741777 Temporary fix -- Edgar is going to go home and look up proper, modern
fortran 77 syntax for strings.  Stupid fortran!

This commit was SVN r2133.
2004-08-13 20:43:54 +00:00
Jeff Squyres
2693c5791c Edgar correctly pointed out that I declared the SVN character string
incorrectly

This commit was SVN r2130.
2004-08-13 20:06:48 +00:00