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

12 Коммитов

Автор SHA1 Сообщение Дата
Jeff Squyres
113ce723e1 Convert all ompi_bitmap_t and ompi_pointer_array_t indexing from
size_t to int.  This is in recognition of the fact that these two
classes are primarily used for fortran<-->c convertsion of various
entities (attributes, MPI objects), and MPI defines that an int must
be used to hold MPI fortran handles.  Hence, why use size_t
internally?   See the comment in src/class/ompi_pointer_array.h for a
better description.

Mixed in a few attribute fixes in this commit as well.

This commit, therefore:
- converts the indexing from size_t to int
- changes all locations in the code that I could find that used size_t
  as the interface to ompi_bitmap_t or ompi_pointer_array_t
- convert to use OMPI_FINT_2_INT / OMPI_INT_2_FINT macros in various
  src/mpi/c/*f2c.c and src/mpi/c/*c2f.c files
- check the return code of ompi_comm_free() to ensure that everything
  worked properly before returning MPI_SUCCESS
- unified all src/mpi/c/*f2c.c functions (i.e., they all do the same
  thing)
- tie up some loose ends w.r.t. MPI_Request handling in fortran; set
  the req_f_to_c_index to MPI_UNDEFINED when it does not have a fortran
  index
- still need to add a configure test to find OMPI_FORTRAN_HANDLE_MAX
  for ompi_bitmap.c and ompi_pointer_array.c (hard-wired to INT_MAX
  right now)
- re-organized, consolidated, and unified some ompi_pointer_array.c
  code -- fixed a few minor bugs w.r.t. lowest_free (could have left
  some unintentional holes in the array)

This commit was SVN r3302.
2004-10-23 19:24:00 +00:00
Jeff Squyres
c3c63b57c4 Arf. Anju and I misunderstood each other yesterday -- the OMPI_EXPORT
thingy needs to go on the *declaration*, not the *definition*.  Well,
at least this was all done en masse and via an automated mechanism, so
total time wasted was only about 15 minutes...

This commit was SVN r2858.
2004-09-24 18:33:36 +00:00
Jeff Squyres
4d05abcf8e Perfect brainless late-night hacking -- add the new OMPI_EXPORT macro
to all the MPI f77 and C bindings.  Yay Windows!  ;-)

This commit was SVN r2856.
2004-09-24 10:30:19 +00:00
Graham Fagg
62f5ad9979 Changed c2f calls to not call an errorhandler but instead use NULL objects instead
(file is special case, and a few like win still not implemented).

This commit was SVN r2723.
2004-09-16 15:14:55 +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
726af9ea85 Revamp MPI_Info handling a bit:
- fix a few bugs
- convert/add doxygen comments for internal info functions in
  src/info/info.h (some comments were originally in src/info/info.c)
- make it thread safe
- make MPI_INFO_NULL be a real object (vs ((struct ompi_info_t*) 0))
- add error checking into top-level MPI functions
- add support in MPI_Info for "never freeing MPI handles" as a form of
  debugging i.e., check if see if you accidentally use a freed handle)
- add support for "print out a list of un-freed MPI_Info handles
  during MPI_FINALIZE"

This commit was SVN r2089.
2004-08-12 16:56:24 +00:00
Jeff Squyres
eeee18fce8 Make a pass through all top-level MPI functions
- Mark those who are still not yet implemented:
  - return an error
  - have a grep-able string indicating that they are not yet
    implemented
- ensure every function checks for init/finalize
- add more error checking to a bunch of functions
- unify the error checking -- it reflected about 3 different
  [previous] error checking styles and MPI exception invocation styles

This commit was SVN r1817.
2004-07-30 02:58:53 +00:00
David Daniel
563ac2a338 First pass of lam -> ompi conversion
This commit was SVN r1191.
2004-06-07 15:33:53 +00:00
Prabhanjan Kambadur
f1fa051d5c Changing the MPI_Info and lam_info functions to incorporate both error handlers and the fortran to C translation table
This commit was SVN r1057.
2004-04-20 22:13:39 +00:00
Prabhanjan Kambadur
a0983ab473 Changing the bindings files to have the #define of MPI_ functions to PMPI_ functions after the #pragma weak statement
This commit was SVN r1055.
2004-04-20 18:50:43 +00:00
David Daniel
7f8c2c3714 Updating header file names after the great directory reorganization.
This commit was SVN r877.
2004-03-17 18:45:16 +00:00
Jeff Squyres
698685924b Part 2 of The Great Source Reorganization
This commit was SVN r873.
2004-03-17 17:45:44 +00:00