1
1

153 Коммитов

Автор SHA1 Сообщение Дата
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
George Bosilca
b7794b2dbc Following Brian remarque I remove all runtime.h include from the datatype related files.
This commit was SVN r2776.
2004-09-20 17:19:33 +00:00
George Bosilca
50a8bee21a Remove some compilation warnings. Change the type of the argument from int* to unsigned int*.
This commit was SVN r2766.
2004-09-19 13:59:51 +00:00
George Bosilca
acaa209c02 First implementation ... and I hope the last :).
This commit was SVN r2763.
2004-09-19 13:56:39 +00:00
George Bosilca
eb5e5191fa Adapt to the new datatype engine and correct some minor bugs.
This commit was SVN r2753.
2004-09-19 07:05:58 +00:00
Edgar Gabriel
1d16996a48 make comm_join work
This commit was SVN r2746.
2004-09-17 16:30:40 +00:00
Edgar Gabriel
ad3702b96d fixing some minor issues in connect/accept. A connect/accept between two groups of processes (within the same MPI_COMM_WORLD) works already
This commit was SVN r2743.
2004-09-17 13:16:14 +00:00
Edgar Gabriel
9c64200871 adapting some functions to the new interface of comm_connect_accept. This takes now an additional argument (a tag) to be able to distnguish several ongoing connec/accept/join/spawn operations simultaniously.
This commit was SVN r2742.
2004-09-17 10:12:31 +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
Graham Fagg
5760f3ef8c fixed truncation check (buf=size of data is not a truncation!)
This commit was SVN r2720.
2004-09-16 14:36:38 +00:00
Edgar Gabriel
ed964097f5 a sever bug fix in comm_compare: we always comm1 with comm1, and ignored comm2. Strangely, we passed the Intel comm_compare test with this bug...
This commit was SVN r2709.
2004-09-16 10:08:40 +00:00
George Bosilca
c00407e5ff Add a temporary variable to keep the pml_wait happy as it does not support NULL.
This commit was SVN r2703.
2004-09-16 08:50:50 +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
9bdf18443a First cut of MPI_ABORT. We might make it better someday (i.e., try to
honor killing only the procs in the comm, do something with the
errorcode, etc.).

This commit was SVN r2690.
2004-09-15 20:53:40 +00:00
Jeff Squyres
1087508c85 Return MPI_ERR_COMM, not MPI_ERR_ARG if have invalid comm
This commit was SVN r2687.
2004-09-15 19:55:36 +00:00
Jeff Squyres
f6a06fcbb5 There is a very confusing situation dealing with MPI-defined functions
such as MPI_DUP_FN: MPI says that they have to be available via that
name in both C and Fortran.  However, for implementation reasons, we
have to have them as separate functions.  But if a Fortran compiler's
naming convention is ALL_CAPS, this is not possible.  Hence, we need
to put in #define's in mpi.h to change the C names something like
this: MPI_DUP_FN -> OMPI_C_MPI_DUP_FN.  This was actually done a long
time ago.

However, the source code where those C functions actually live
(src/mpi/c/attr_fn.c) still reflected the old names (e.g.,
MPI_DUP_FN).  This is fine, actually -- mpi.h would come in and
#define them to their real names (OMPI_C_MPI_DUP_FN).  So it was
functionally correct, but confusing at hell (and it just bit Edgar and
me today).  So I'm changing src/mpi/c/attr_fn.c to use the real names
(OMPI_C_MPI_DUP_FN) so that tools like ctags and grep can find them in
the source code when you go looking.  Plus, the code is just more
clear that way.  I also put in massive comments about this in
src/mpi/c/attr_fn.c and src/mpi/f77/attr_fn_f.c so that we remember
why the heck we did this.  :-)

This commit was SVN r2670.
2004-09-14 17:03:41 +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
18a1801c91 Impliement MPI_STATUS_SET_ELEMENTS
This commit was SVN r2653.
2004-09-14 10:45:19 +00:00
Jeff Squyres
8e14d725ad Change all f2c() functions to use the safe
ompi_pointer_array_get_item() function instead of accessing the array
directly.  This is because accessing the array directly in
multi-threaded situations is unsafe (someone else may be writing to
the array, the array may get moved out from under you via realloc(),
etc.).

This commit was SVN r2634.
2004-09-13 18:14:03 +00:00
Edgar Gabriel
0ca2a77b68 fixing some group function with respect to how to determine the rank of a process in the group.
This commit was SVN r2623.
2004-09-13 09:03:10 +00:00
Edgar Gabriel
cfca6e88c1 fix for group_compare, adding MPI_GROUP_EMPTY as a result for group_intersection/difference/union
This commit was SVN r2562.
2004-09-09 16:01:44 +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
Jeff Squyres
434a09fbf1 Fix a bad MPI function prototype
This commit was SVN r2529.
2004-09-07 21:38:46 +00:00
Jeff Squyres
985b219c6c Fix typo (sorry folks, this'll cause a lot of recompiling... :-\ )
This commit was SVN r2526.
2004-09-07 20:07:31 +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
95c87a5d72 Updates and fixes to make MPI_PACK / MPI_UNPACK *really* work :-)
This commit was SVN r2390.
2004-08-30 07:52:09 +00:00
Jeff Squyres
a2996b2d01 Remove temporary use of global convertor; MPI_PACK and MPI_UNPACK are
now thread-safe.

This commit was SVN r2386.
2004-08-29 22:45:06 +00:00
Jeff Squyres
41192eda33 Remove compiler warning
This commit was SVN r2381.
2004-08-29 19:27:55 +00:00
Jeff Squyres
25748a24b2 Oops -- pass in 0 for argc, not NULL.
This commit was SVN r2375.
2004-08-29 09:06:49 +00:00
Jeff Squyres
e2aaf64239 Add a few checks to ensure that MPI_INIT(NULL, NULL) and
MPI_INIT_THREAD(NULL, NULL, ...) will work properly.

This commit was SVN r2362.
2004-08-28 16:30:29 +00:00
Jeff Squyres
f90e1d2628 Come to think of it, we need better error handling for MPI_INITIALIZED
and MPI_FINALIZED, depening on whether we have already called MPI_INIT
and/or MPI_FINALIZED...  This fixes that issue.

This commit was SVN r2360.
2004-08-28 16:23:15 +00:00
Jeff Squyres
7b7c23466c Don't check for init/finalize in MPI_Initialized and MPI_Finalized.
Duh.  :-)

This commit was SVN r2359.
2004-08-28 16:00:27 +00:00
Jeff Squyres
867a985a3a Fix some errors in usage of the convertor
This commit was SVN r2355.
2004-08-28 09:35:52 +00:00
Jeff Squyres
c704267665 Minor fix -- double check that status isn't MPI_STATUS_IGNORE before
assigning to it

This commit was SVN r2351.
2004-08-28 08:46:36 +00:00
Jeff Squyres
7ccf210a28 According to the AM manual (which I was re-reading today for another
upcoming commit), this is the preferred way to do conditional source
files these days.  AM can then infer which files to pick up for
distribution without the need for EXTRA_DIST.  Also, for mpi/c/profile
and mpi/f77/profile, don't distribute any source files -- just let the
sym links be made by the user.  This makes the tarball just slightly
smaller.  ;-)

This commit was SVN r2316.
2004-08-26 20:28:36 +00:00
Jeff Squyres
15c01284e6 Remove unused variables to eliminate compiler warnings
This commit was SVN r2296.
2004-08-25 11:49:19 +00:00
Tim Woodall
442c9e03b5 provide pml implementation - will need to update for romio
This commit was SVN r2172.
2004-08-16 23:10:25 +00:00
Jeff Squyres
3274e80b0c Oops -- wtick and wtime are not supposed to be profiled. This fixes
the nightly build on frood from last night.

This commit was SVN r2141.
2004-08-14 12:49:38 +00:00
Jeff Squyres
1787645a3d After consulting with Edgar and MPI-2:4.12.4, decide the following:
- the f2c functions should return the corresponding *_NULL functions
  and not invoke an MPI exception if an invalid fortran handle is
  passed
- the error check should be outside MPI_PARAM_CHECK -- MPI defines the
  behavior of when an invalid fortran handle is passed; it is not
  dependant upon whether we are checking parameters or not

This commit was SVN r2140.
2004-08-14 12:28:25 +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
6cfe8bdfb9 Fix some Makefile.am issues with respect to profiling
This commit was SVN r2132.
2004-08-13 20:42:38 +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
Brian Barrett
567c777904 * reintroduce r1965, with change in ns_proxy_component so that functions
are in the right order in the process struct

This commit was SVN r2006.

The following SVN revision numbers were found above:
  r1965 --> open-mpi/ompi@48c8d55b6d
2004-08-10 17:58:23 +00:00
Brian Barrett
882c458534 * back out r1965 until we can figure out why it causes failures. Also edit
comm_join and comm_connect to #if 0 out the calls to the ns added in 
  r1965

This commit was SVN r1994.

The following SVN revision numbers were found above:
  r1965 --> open-mpi/ompi@48c8d55b6d
2004-08-10 02:36:49 +00:00