1
1

107 Коммитов

Автор SHA1 Сообщение Дата
Tim Woodall
a5cf56c425 add support for packing/unpacking ompi_process_name_t as OMPI_NAME
This commit was SVN r2437.
2004-09-01 23:09:41 +00:00
Ralph Castain
57d820e34d Correct the name on daemon_init to ompi_daemon_init. Fix the setup file i/o interface to correctly write/read universe setup files.
This commit was SVN r2398.
2004-08-30 19:25:14 +00:00
Ralph Castain
d4c059a942 Get rid of a couple of warning messages in the nightly builds...
This commit was SVN r2380.
2004-08-29 19:03:23 +00:00
Ralph Castain
5b7e17908d Okay, now for a *slightly* less aggressive cleanup of the session dir. Whereas the previous version was a tad unfriendly to files from other procs sharing the tree, this one is somewhat more respectful....
BTW, in case anyone is trying to use threads, be aware that much of the RTE is NOT thread-safe at this time. We'll work on that soon.

:-)

This commit was SVN r2379.
2004-08-29 16:37:02 +00:00
Jeff Squyres
d2ea3eea6d Only unlock the mutex if we actually locked it.
This commit was SVN r2373.
2004-08-29 07:50:07 +00:00
Ralph Castain
ee75ce35cd Fix a logic error and typo that were keeping files in the session dir tree alive - now can truly "woo-hoo".
This commit was SVN r2371.
2004-08-29 06:50:00 +00:00
Ralph Castain
671a3de019 Add session directory finalize routines - session directories are now cleaned up! Woo-hoo!
This commit was SVN r2370.
2004-08-29 02:46:31 +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
41592650f2 - Silence useless compiler warning
- Make the code conform better to the coding guidelines (I think some
  of this was written long before the guidelines were established...?)

This commit was SVN r2357.
2004-08-28 11:56:33 +00:00
Tim Woodall
16d250b376 - integration of gpr/ns/oob w/ mpirun2
This commit was SVN r2344.
2004-08-28 01:15:19 +00:00
Jeff Squyres
dace5cd6d9 Better/clearer memory management; fix some memory leaks
This commit was SVN r2332.
2004-08-27 16:44:12 +00:00
Jeff Squyres
d767e7822f Forgot to destroy the mutex
This commit was SVN r2331.
2004-08-27 16:43:35 +00:00
Jeff Squyres
b053a53823 - In an attempt for better compile times (i.e., less dependencies),
strip down cmd_line.h; remove necessity of including
  include/constants.h and util/argv.h.
- This means that a bunch of other files in the source tree that
  depended on those files having already been included needed to be
  updated to include the relevant file(s)
- In fixing these (^^), added both /* $HEADER$ */ and #include
  "ompi_config.h" in a few files that were missing them.
- change from ompi_cmd_line_create() / ompi_cmd_line_free() to
  OBJ_NEW() / OBJ_RELEASE()
- update mpirun2.cc to allow "-np"
- fix minor problem in mpirun2.cc where two command line params were
  accepting "-h"
- slightly revamped cmd_line.c to use the OBJ_NEW/OBJ_RELEASE
  interface.  Added new function ompi_cmd_line_make_opt3() that allows
  "single dash" parameters.
- Greatly expanded the ompi_cmd_line_t doxygen docs.
- The diff for ompi_cmd_line_t is artificially large because I also
  took the opprotunity to reformat to 4 space tabs.  Sorry.  :-\

This commit was SVN r2308.
2004-08-26 07:56:45 +00:00
Jeff Squyres
b5b873bb59 Eliminate some compiler warnings
This commit was SVN r2295.
2004-08-25 11:46:56 +00:00
Ralph Castain
83db216e40 Reserves a spot for the console program - no code in it yet. Attempts to fix earlier problem when compiling/linking the universe_setup_file_io routines. Will test further on new checkout - appears to work fine under OSX right now.
This commit was SVN r2291.
2004-08-25 02:01:35 +00:00
Ralph Castain
3007a3270b Update that defines a default value for the "my_universe" field.
This commit was SVN r2278.
2004-08-24 14:20:49 +00:00
Jeff Squyres
7476707d72 Temporarily #if 0 the body of these functions because they cause
linker errors.  Will follow up in an email to the relevant developers
(from svn blame).

This commit was SVN r2277.
2004-08-24 11:12:05 +00:00
Jeff Squyres
de28be5768 - remove useless doxtext @file comment
- add missing header file

This commit was SVN r2275.
2004-08-24 08:44:37 +00:00
Ralph Castain
b7b0ee1905 Checkpointing the openmpi program. Added ability to write/read universe setup files in session directory. Added logic for connecting to existing universe.
This commit was SVN r2274.
2004-08-24 03:04:41 +00:00
Ralph Castain
b2868d0158 Begin knitting the openmpi program using the name server, registry, etc. Changes include:
- modified rte_init to utilize name server, interface to session directory system
- added fields to system_info and proc_info
- created a utility for converting process into daemon
- modified openmpi to interface to various functions, spawn universe, record contact info, etc. Program almost complete.
- began building ompid daemon

This commit was SVN r2270.
2004-08-23 21:39:22 +00:00
David Daniel
b1ff3e50c2 Closing in on compilation with Solaris (and other non-GNU) compilers.
This commit was SVN r2244.
2004-08-19 23:34:46 +00:00
David Daniel
5c4c277266 Numerous niggles related to building on Solaris
This commit was SVN r2234.
2004-08-19 19:30:53 +00:00
Graham Fagg
720156b50d Added new pack and unpack string functions. These are mainly used by RTE (NS/GPR etc).
- unpack string allocates memory for user removing need to know/set max string lengths
- fixed missing 'break' in case statement thanks to unit test yet again!
- updated unit test ompi_pack (test8)
- will remove old OMPI_STRING type and support shortly after checking for usage

This commit was SVN r2219.
2004-08-18 23:18:25 +00:00
David Daniel
1d3e06bb8a Changes to output.c etc. to use asprintf
This commit was SVN r2218.
2004-08-18 23:15:48 +00:00
Tim Woodall
08de49cc4a allow null string
This commit was SVN r2185.
2004-08-17 16:10:42 +00:00
Jeff Squyres
11c9295d6c Move the ompi_few() docs to the .h file.
This commit was SVN r2176.
2004-08-17 03:06:39 +00:00
Rich Graham
f75b88faa5 fix a bug, so that the fifo size is rounded up to a power of 2.
Add some support code to determine nearest power of 2.

This commit was SVN r2170.
2004-08-16 23:06:33 +00:00
David Daniel
a1688d5b9f more atomic.h changes
This commit was SVN r2157.
2004-08-16 01:13:25 +00:00
David Daniel
6bdf9c0cbc Adding file to instantiate assembly level code for non-GNU C compilers. Not added to build system yet.
This commit was SVN r2153.
2004-08-15 22:06:01 +00:00
Graham Fagg
fdc4ab5da0 Added prealloced buffer init call (ompi_buffer_init_preallocated())
and updated the unit test for this.
- This call is for use by the OOB device so it can pass the pack/buffer system
  memory. This removes the peek-recv race condition.

This commit was SVN r2105.
2004-08-13 02:26:12 +00:00
Graham Fagg
f4b77b5d60 Changed unpack start pointer (from_ptr) setup.
- Testsuite found as this was set to NULL until a pack to catch invalid unpacks
     that if a realloc occured on the first pack, then all ptrs updated by
     relative amounts and then the from_ptr was not NULL and not set on
	 first pack correctly. Have changed it to the simple method.

This commit was SVN r2098.
2004-08-12 23:14:00 +00:00
Graham Fagg
b8ef4da537 made ompi_buffer_get_ptrs() public so oob_recv wrappers can see it.
This commit was SVN r2071.
2004-08-11 21:08:40 +00:00
Graham Fagg
5185e4f006 Updated ompi_buffer_init so that you can force an initial size of buffer
(used by oob_recvs, that need the memory ptr before posting the actual recv)

This commit was SVN r2068.
2004-08-11 19:52:28 +00:00
Graham Fagg
fdbeb9c3cf Added realloc code for resizing buffers. Tested before commiting.
This commit was SVN r2064.
2004-08-11 18:44:00 +00:00
Brian Barrett
4b2634fe08 * only edit the procinfo struct if we are creating the thing
This commit was SVN r2044.
2004-08-11 16:24:00 +00:00
David Daniel
f062fb9d01 Including sys/types.h for MacOS X
This commit was SVN r2041.
2004-08-11 16:04:29 +00:00
Graham Fagg
4e34dc89ed Fixed coding style and added header needed by OS 10 users..
This commit was SVN r2039.
2004-08-11 15:58:30 +00:00
Graham Fagg
e77a30ba34 Finished (2nd?) version of the public pack/unpack routines.
- Correctly pack previously packed buffers.. but makes flat storage
- Buffers are managed by system (they are now objects)

Todo: complete realloc code, checkin my test code in tests/util
      add a few more pack types and then remove oob_pack as no-one is using it

This commit was SVN r2034.
2004-08-11 07:04:38 +00:00
David Daniel
7735e6dec5 Adding portable pseudo-terminal code. Not yet tested -- but not yet used.
This commit was SVN r2027.
2004-08-10 22:42:45 +00:00
David Daniel
ac36e0fc27 Adding conditionals for portable (v)asprintf and (v)snprintf implementations
This commit was SVN r2026.
2004-08-10 22:41:17 +00:00
Graham Fagg
425fd171d6 Added a top level pack header for users of Ralphs NS/GPR to use
(now that GPR users will explicitly pack/unpack buffers)

This commit was SVN r2017.
2004-08-10 21:13:31 +00:00
David Daniel
ed9969f55f Renaming asprintf.c to printf.c, adding printf.h
This commit was SVN r2016.
2004-08-10 21:13:08 +00:00
David Daniel
9fd6f81d35 Changing asprintf, adding snprintf
This commit was SVN r2015.
2004-08-10 21:11:39 +00:00
Brian Barrett
7932c850c1 * Move the proc_info and session_dir initialization into the ompi_rte_init
code
* clean up comments in the session and proc code so that it's readable in
  80 columns
* Try to get cleanup correct

This commit was SVN r2003.
2004-08-10 16:05:22 +00:00
Brian Barrett
b77aa552e8 * Move the sys_info initialization into ompi_init(), since it should really
be there for any OMPI process.

This commit was SVN r2000.
2004-08-10 04:59:34 +00:00
David Daniel
fa29bb9741 Adding an asprintf implementation for portability. Should add a (v)snprintf implementation later.
This commit was SVN r1971.
2004-08-09 15:03:52 +00:00
Edgar Gabriel
b5780263dc adding a #define _GNU_SOURCE just to make ompi compile on LINUX again,
(required for asprintf on LINUX). A proper solution to follow soon.
Approved by Ralph.

This commit was SVN r1966.
2004-08-08 19:06:15 +00:00
Ralph Castain
2136524e17 Major change to the session directory system that will break all code that uses it - so BEWARE! I modified proc_info.c and universe_init.c to work with the new system, but those were the only places I could immediately find. Check out the src/util/session_dir.h documentation to see the changes.
The tree seems to still compile as far as I can tell. I can't do a full commit against the tree because someone made changes to the registry functions, thereby creating a conflict that I haven't had the chance to resolve. I believe I have committed all the required files, but we'll have to see...

This commit was SVN r1959.
2004-08-08 02:24:00 +00:00
Jeff Squyres
f543780705 Fix silly bug -- ensure to initialize the verbosity level properly.
This commit was SVN r1953.
2004-08-07 19:54:15 +00:00
Jeff Squyres
eb8cba98af - massive change for module<-->component name fixes throughout the
code base.
  - many (most) mca type names have "component" or "module" in them,
    as relevant, just to further distinguish the difference between
    component data/actions and module data/actions.  All developers
    are encouraged to perpetuate this convention when you create
    types that are specific to a framework, component, or module
  - did very little to entire framework (just the basics to make it
    compile) because it's just about to be almost entirely replaced
  - ditto for io / romio
  - did not work on elan or ib components; have to commit and then
    convert those on a different machine with the right libraries and
    headers
- renamed a bunch of *_module.c files to *_component.c and *module*c
  to *component*c (a few still remain, e.g., ptl/ib, ptl/elan, etc.)
- modified autogen/configure/build process to match new filenames
  (e.g., output static-components.h instead of static-modules.h)
- removed DOS-style cr/lf stuff in ns/ns.h
- added newline to end of file src/util/numtostr.h
- removed some redundant error checking in the top-level topo
  functions
- added a few {} here and there where people "forgot" to put them in
  for 1 line blocks ;-)
- removed a bunch of MPI_* types from mca header files (replaced with
  corresponding ompi_* types)
- all the ptl components had version numbers in their structs; removed
- converted a few more elements in the MCA base to use the OBJ
  interface -- removed some old manual reference counting kruft

This commit was SVN r1830.
2004-08-02 00:24:22 +00:00