1
1

196 Коммитов

Автор SHA1 Сообщение Дата
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
George Bosilca
e64562e958 Now they seems to work.
This commit was SVN r3422.
2004-10-28 23:37:14 +00:00
George Bosilca
379f356483 Remove a compiling warning.
This commit was SVN r3391.
2004-10-28 17:45:11 +00:00
Tim Woodall
3e99353ce1 correct mpi semantics
This commit was SVN r3364.
2004-10-26 23:39:24 +00:00
Brian Barrett
0b131fe5c4 * Wait for all children before allowing the RSH or RMS pcm to finalize so that
cleanup happens correctly
* Deregister all async waitpid callbacks during pcm finalize so that they
  don't accidently trip after the component has been unloaded
* Cleanup the pid tracking code shared by RMS and RSH and update both
  components to match
* Add a bit to MPI_Abort() in preparation of ompi_rte_kill_job working
  properly soon

This commit was SVN r3360.
2004-10-26 22:11:03 +00:00
Tim Woodall
923ece8537 changed calls to test/testany
This commit was SVN r3356.
2004-10-26 21:46:04 +00:00
Tim Woodall
c01a17dad9 - fixed arg list in sendrecv
- added brain dead sendrecv_replace implementation

This commit was SVN r3339.
2004-10-26 14:55:23 +00:00
Tim Woodall
78a18a4acd corrected error checking
This commit was SVN r3336.
2004-10-26 12:37:19 +00:00
Edgar Gabriel
ee8b9e1897 first cut on the new disconnect infrastructure. More to come,
especially focusing on Finalize.

This commit was SVN r3331.
2004-10-26 11:37:58 +00:00
Jeff Squyres
9f13808c1c Remove compiler warning
This commit was SVN r3330.
2004-10-26 11:18:10 +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
Jeff Squyres
e14b5c5b4a Fix some compiler warnings
This commit was SVN r3247.
2004-10-20 22:52:03 +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
a9db439a86 return correct status
This commit was SVN r3244.
2004-10-20 21:47:44 +00:00
Tim Woodall
e0a732cc95 temporary fix
This commit was SVN r3243.
2004-10-20 21:42:08 +00:00
Tim Woodall
cad5b2c923 - removed req_query from base request - only needed for generalized requests
- fix for persistent recvs

This commit was SVN r3235.
2004-10-20 14:56:52 +00:00
Brian Barrett
cc44f2abc2 * Make the spawn constants slightly more clear in meaning
* fix typo in error message for spawning processes
* Remove the name field from the global ompi_process_info struct, replacing
  usage with calls to ompi_rte_get_self().  Cleaned up the resulting logic
  in ompi_rte_init() to make it slightly simpler when dealing with the
  singleton case.  Reduces data duplication and I believe fixes bug
  #1009 as a nice side effect.

This commit was SVN r3230.
2004-10-20 02:24:40 +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
George Bosilca
0b2b7cd2c7 Make the compiler happy by comparing similar types.
This commit was SVN r3219.
2004-10-19 23:30:19 +00:00
Tim Woodall
53ddf3e0fc correct typo
This commit was SVN r3217.
2004-10-19 22:12:40 +00:00
Tim Woodall
c65b706c67 more cleanup`
This commit was SVN r3216.
2004-10-19 22:11:59 +00:00
Tim Woodall
7628c9f16a cleanup to correct mpi semantics
This commit was SVN r3214.
2004-10-19 22:00:19 +00:00
Jeff Squyres
3b5f8c87a2 Fix for bug 1007 -- save the selected coll component on the
communicator so that it can be passed down through MPI_COMM_DUP as the
"preferred" component during coll selection.

This commit was SVN r3179.
2004-10-15 22:32:48 +00:00
Jeff Squyres
ea6f7be7ba Fix $HEADERS$ -> $HEADER$ -- will make for easier replacement later
This commit was SVN r3173.
2004-10-15 19:31:47 +00:00
Jeff Squyres
e23ab15da1 - Make attributes thread safe. Design decision: attributes are so far
away from the critical performance path that we do not attempt to
  provide fancy / fine-grained locking at all.  There is one global
  lock that protects most attribute actions.  Since attribute actions
  are non-blocking in nature, this will not cause deadlock.
- Fix a problem where attributes could get deleted from a communicator
  before the communicator was actually released.

This commit was SVN r3136.
2004-10-14 18:06:40 +00:00
George Bosilca
b1459954eb Do the wait on a temporary status and then copy it at the position index.
This commit was SVN r3083.
2004-10-13 16:10:06 +00:00
Tim Woodall
97752f1b06 - added ompi_request_wait which is optimized for a single request
- added georges comments regarding MPI_REQUEST_NULL handling to ompi_request_wait_any

This commit was SVN r3069.
2004-10-12 18:01:39 +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
George Bosilca
d3df61dc9e Do not always destroy the first status. More and more tests get passed.
This commit was SVN r3029.
2004-10-10 01:13:51 +00:00
George Bosilca
950e46e086 Correct a bug on the CHECK_DDT macros. Now the datatype.h match what's expected by the mpi layer.
This commit was SVN r3022.
2004-10-10 00:22:23 +00:00
George Bosilca
c19d1d330e Correct the get_count function. Now we pass a lot more tests.
This commit was SVN r3016.
2004-10-09 21:29:34 +00:00
Jeff Squyres
9bb95ce949 After thinking about this a little more on the plane, my hackaround
was actually the correct solution.  So change the comment to reflect
why that #if is there, and why it is correct.

This commit was SVN r3012.
2004-10-09 14:42:27 +00:00
Jeff Squyres
6b48c878a1 Arf! Didn't check this *without* enabling the fortran bindings.
This is a hackaround so that people can compile; I need to move the
macro definitions elsewhere to do this right.  Will do so tonight.

This commit was SVN r2998.
2004-10-08 19:24:12 +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
Prabhanjan Kambadur
4c9f883a9b Changing the logic in ompi_comm_split to pass on the topo information only when required. Also had to change other files to go along wit this. Tested the intel test suites (relevant tests ... MPI_Cart_sub_c MPI_Comm_split1_c MPI_Comm_split2_c ... everything seems to work fine
This commit was SVN r2982.
2004-10-07 19:14:27 +00:00
Jeff Squyres
101a83ab5f Change attribute hashes to only be non-NULL on MPI objects that
actually have attributes cached on them.  If there are no attributes
cached on the object, the keyhash will be NULL.

This commit was SVN r2968.
2004-10-07 01:26:40 +00:00
Prabhanjan Kambadur
4655fe3943 Correcting code which allows topo to function properly ... also adding code to make comm_split and comm_dup work properly
This commit was SVN r2933.
2004-10-05 16:32:52 +00:00
Jeff Squyres
4734734520 One more quickie change / optmization / seg-fault preventer
This commit was SVN r2924.
2004-10-04 19:25:40 +00:00
Jeff Squyres
02cc1ccdc9 No need to do anything for sendcount==0 case
This commit was SVN r2904.
2004-10-01 18:23:39 +00:00
Edgar Gabriel
5b03c18c07 minor fixes. If I start the spawned process manually,
the spawning and retrieving the parent communicator
works already. Have to debug now, what is going wrong
when starting the processes.

This commit was SVN r2902.
2004-10-01 14:06:23 +00:00
Jeff Squyres
db04147154 Don't invoke back-end coll functions if the count is zero (ddt
functions don't behave well when called with 0 counts)

This commit was SVN r2889.
2004-09-30 15:56:08 +00:00
Edgar Gabriel
05a28efd1f first cut on the comm_spawn mechanism. It doesn't work yet
(and I don't know why), but it also doesn't seem to break anything else...

This commit was SVN r2874.
2004-09-29 12:41:55 +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
Jeff Squyres
a9010be2e5 Minor cleanups and additional comments for attribute stuff
This commit was SVN r2807.
2004-09-22 21:31:17 +00:00
Jeff Squyres
d1c3ed046e Add minor optimization
This commit was SVN r2806.
2004-09-22 21:17:32 +00:00
Edgar Gabriel
479f6c5e6b ups, now its correct
This commit was SVN r2791.
2004-09-21 10:41:50 +00:00
Edgar Gabriel
1ed7d779aa fixing comm_compare for inter-communicators
This commit was SVN r2790.
2004-09-21 10:31:26 +00:00
Brian Barrett
79a2d8b0a1 * remove a whole bunch of unnecessary #include "runtime/runtime.h"s. I
am sure that some will have to be added back in as functionality is
  added (like for comm_spawn.c), but for now might as well compile
  faster :)

This commit was SVN r2780.
2004-09-20 18:42:01 +00:00