1
1

61 Коммитов

Автор SHA1 Сообщение Дата
Jeff Squyres
df8c736993 Ensure that we invoke fortran errorhandlers with a function prototype
that uses MPI_Fint's, and that we convert the C int's to MPI_Fint's
before invocation.

This commit was SVN r5029.
2005-03-25 20:25:28 +00:00
Jeff Squyres
3f5541349a Add UC copyright
This commit was SVN r5009.
2005-03-24 12:43:37 +00:00
Jeff Squyres
3b3279b267 Add clarification comment
This commit was SVN r4210.
2005-01-28 18:47:52 +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
616269a9be Add HLRS copyright
This commit was SVN r3665.
2004-11-28 20:09:25 +00:00
Jeff Squyres
5cbf975955 Fix a confusing situation, and eliminate a potential memory leak.
MPI-1 does not say whether an errorhandler obtained via
MPI_ERRHANDLER_GET (or MPI_COMM_GET_ERRHANDLER or ...) needs to be
ERRHANDLER_FREE'd or not.  I don't think it does, but some users will
probably disagree.  So per the lengthy comment in
src/mpi/c/comm_get_errhandler.c, we increment the refcount whenever
GET is invoked.

This can lead to a memory leak in FINALIZE if the user GET's some
intrinsic error handlers -- we'll increment the refcount, which means
that it will never get to 0 during FINALIZE like it should.  So add a
little extra logic to ensure that they are OMPI_OBJ_DESTROY'ed during
FINALIZE like they should be.

This commit was SVN r3661.
2004-11-26 22:11:22 +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
Jeff Squyres
34658afa73 Having the output on 2 lines really bugged me. :-)
This commit was SVN r3564.
2004-11-15 02:48:54 +00:00
George Bosilca
9659288e74 I hate waiting on the airports. SO I start doing something usefull ...
I remove a lot of inter-dependence, I use the struct_t type.
BEWARE not all the function are ready.

This commit was SVN r3524.
2004-11-05 07:52:30 +00:00
Brian Barrett
ff5ca38dce * start of abort() and cntl-c support.
- register non-blocking recv for process starter whenever a new spawn
    occurs.
  - send kill message when rte_kill_job or kill_proc is called
  - pcm does its mojo to result in the death of the processes

This commit was SVN r3458.
2004-11-01 16:05:31 +00:00
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
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
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
2adc1fd062 make all the internal errcodes static to prevent clashes
This commit was SVN r3234.
2004-10-20 14:08:27 +00:00
Jeff Squyres
a15ba6d59d Arf -- it's not a pointer, it's a boolean.
This commit was SVN r3231.
2004-10-20 11:02:57 +00:00
Jeff Squyres
d324a7725c - Add #if protection around non-portable system .h files
- Add #include "ompi_config.h" to all .c files, and ensure that it's
  the first #included file
- remove a few useless #if HAVE_CONFIG_H checks

This commit was SVN r3229.
2004-10-20 01:03:09 +00:00
Jeff Squyres
ceafa4d178 int->size_t fixes
This commit was SVN r3224.
2004-10-19 23:58:12 +00:00
Tim Woodall
7628c9f16a cleanup to correct mpi semantics
This commit was SVN r3214.
2004-10-19 22:00:19 +00:00
Prabhanjan Kambadur
d9e0ad22f4 file/file.c
info/info.c
group/mpi_group_init.c
communicator/comm_init.c
communicator/comm.c

This commit was SVN r3199.
2004-10-18 16:55:20 +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
Jeff Squyres
17011989b4 - Unify the back end of the 3 errors_are_fatal functions
- Make the unified back-end able to send output via fprintf(stderr,
  ...) (if we're before MPI_INIT or MPI_FINALIZED) and ompi_output(0,
  ...) if we're between MPI_INIT and MPI_FINALIZED

This commit was SVN r2785.
2004-09-20 23:01:40 +00:00
Jeff Squyres
ae6ff056d1 Don't bother trying to use the fancy schmancy ERRHANDLER macros when
invoking an errhandler in MPI_INIT when we don't yet have a
communicator to invoke them on.  Instead, remove some of the logic
from the ERRHANDLER macros and just invoke the back-end function
directly in MPI_INIT.

This commit was SVN r2692.
2004-09-15 20:55:29 +00:00
Jeff Squyres
7a0c3fd490 Add some fflush()'s to help user output appear before the error output
This commit was SVN r2691.
2004-09-15 20:54:11 +00:00
Jeff Squyres
52a3a9b62b Slightly modify a few error messages (make them lower case, like the rest)
This commit was SVN r2688.
2004-09-15 20:00:21 +00:00
Edgar Gabriel
dccafe7e01 a fix for an error to run
Intel tests. The previous version crashed in MPI_Errhandler_set ...

This commit was SVN r2555.
2004-09-09 14:38:04 +00:00
Edgar Gabriel
718be11bdb fixing a problem for error handlers as discussed with Jeff a couple of weeks ago. The macros used in the MPI functions have not changed, thus the modifications should be transparent to all other functions.
This commit was SVN r2522.
2004-09-06 12:06:27 +00:00
Jeff Squyres
d7f5aea250 - Actually return the new errhandler, not OMPI_SUCCESS (duh)
- Fix typo in logic test to properly initialize the new errhandler

This commit was SVN r2365.
2004-08-28 16:49:40 +00:00
Jeff Squyres
620ccad317 If there's an error message, print it instead of the error code int
value

This commit was SVN r2080.
2004-08-12 01:14:45 +00:00
Brian Barrett
fd27aa08fc * As requested, move mpiruntime to mpi/runtime
This commit was SVN r1960.
2004-08-08 05:20:32 +00:00
Brian Barrett
a27f749134 * Move the MPI runtime code from src/runtime to src/mpiruntime to make the
abstraction a little clearer.
* Include mpiruntime.h instead of runtime.h in errhandler.h since only the
  MPI stuff was needed - speeds compile times greatly when working on the
  RTE...

This commit was SVN r1948.
2004-08-07 00:53:56 +00:00
Jeff Squyres
584252a4b6 Move some initial data around that was initializing the wrong members,
and therefore causing tests to fail

This commit was SVN r1811.
2004-07-26 22:24:56 +00:00
Jeff Squyres
9ee904d95d Bunches of things to make "make dist" work
This commit was SVN r1577.
2004-07-07 20:59:20 +00:00
Tim Woodall
84dd3084b0 backed out changed to OMPI_THREAD_LOCK
This commit was SVN r1469.
2004-06-24 21:09:55 +00:00
Tim Woodall
9b830472fd changed THREAD_LOCK/THREAD_UNLOCK to OMPI_THREAD_LOCK/OMPI_THREAD_UNLOCK
to prevent conflicts w/ external libraries/headers

This commit was SVN r1467.
2004-06-24 20:51:46 +00:00
Tim Woodall
2ce7ca725b - cleanup of some of the c bindings
- for threaded case - cleanup event libraries progress thread
- cleanup of request handling for persistent sends
- added support for buffered sends

This commit was SVN r1461.
2004-06-24 16:47:00 +00:00
Jeff Squyres
1353507d22 More fixes for errhandler, particularly in the case where MPI_INIT* is
the one throwing the exception.

This commit was SVN r1439.
2004-06-23 01:32:03 +00:00
Jeff Squyres
21ada98b99 While debugging collectives, came across a bug where the name of the
function really needs to be passed down via OMPI_ERR_INIT_FINALIZE.
So fix up that macro, the associated errhandler handling, and all the
MPI function that use that macro.

This commit was SVN r1436.
2004-06-22 20:21:35 +00:00
Edgar Gabriel
5e5da35b03 adding the implementation of the internal error codes and the according mapping function to the official MPI error codes. It is however not yet used anywhere.
This commit was SVN r1414.
2004-06-18 17:41:06 +00:00
Jeff Squyres
b9553f509f Add new macro for checking (!ompi_mpi_initialized ||
ompi_mpi_finalized) which will invoke the errors_are_fatal error
handler directly.  Updated src/mpi/c/send.c to show this as an
example.  Also updated send.c to properly check for invalid comm and
invoke the errorhandler on MPI_COMM_WORLD as a result.

This commit was SVN r1412.
2004-06-18 15:47:17 +00:00
Edgar Gabriel
6dd383b884 added implementation for the error codes and error classes. These are currently
just the MPI error codes, the routines handling the OMPI internal error codes and the translation from
internal to MPI error codes is still to be done.

This commit was SVN r1402.
2004-06-17 22:40:16 +00:00
Jeff Squyres
5e5042613f *really* rename the project to "openmpi". :-)
This commit was SVN r1370.
2004-06-17 18:21:08 +00:00
Jeff Squyres
119e15d22d Removed unused variable
This commit was SVN r1281.
2004-06-15 20:27:46 +00:00
David Daniel
563ac2a338 First pass of lam -> ompi conversion
This commit was SVN r1191.
2004-06-07 15:33:53 +00:00
Jeff Squyres
7f10fd0d50 Minor corrections to documentation
This commit was SVN r1111.
2004-05-03 14:58:38 +00:00
George Bosilca
94a84cbaff I correct the creation of the MPI_ERROR_ARE_FATAL, MPI_ERRHANDLER_NULL and MPI_ERRORS_RETURN variables. Less code but same effect as the initializer for the lam_errhandler_t insert the errhandler in the array as the previsious code. The only big difference is that now the error handler class is correctly derived from the parent.
This commit was SVN r1108.
2004-04-30 20:11:07 +00:00
Jeff Squyres
94e45c07d4 Fix typo -- doh!
This commit was SVN r1071.
2004-04-21 00:38:11 +00:00
Jeff Squyres
65b9686184 - Ensure user-created errhandlers are not marked as intrinsic
- fix typo in comment

This commit was SVN r1064.
2004-04-20 23:10:44 +00:00
Jeff Squyres
22cd1bc116 Change the public variables back to instances -- not pointers
This commit was SVN r1058.
2004-04-20 22:17:20 +00:00
Jeff Squyres
49ea6ecf4b Oops. Need to have a *pointer* to the errhandlers in the mpi.h file,
not the actual struct.  Duh!

This commit was SVN r1054.
2004-04-20 18:30:15 +00:00
Tim Woodall
c1ee4fec23 - initial integration with datatypes
- p2p mpi i/f functions
- adding doxygen comments

This commit was SVN r976.
2004-03-26 14:15:20 +00:00