1
1

99 Коммитов

Автор SHA1 Сообщение Дата
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
Brian Barrett
32264acd56 * rename ompi_process_t to mca_ns_{cellid, jobid, vpid}_t, both to fix the
confusion over the overused typedef and to conform to the naming MCA
  naming convention.

This commit was SVN r1815.
2004-07-27 23:49:08 +00:00
Jeff Squyres
262fe2eb73 Need <stdlib.h> for malloc
This commit was SVN r1739.
2004-07-15 15:08:54 +00:00
Brian Barrett
452bd7ddca * need stdlib.h to have malloc.
This commit was SVN r1735.
2004-07-15 13:19:18 +00:00
Rich Graham
46d7e87b1b Create the various session directories, and store this information
in ompi_process_info.

This commit was SVN r1719.
2004-07-14 18:08:34 +00:00
Brian Barrett
312819d8a3 * add support for a long -> string conversion (useful in RTE stuff)
This commit was SVN r1718.
2004-07-14 18:04:31 +00:00
Jeff Squyres
333f256829 Add missing ++i
This commit was SVN r1704.
2004-07-14 01:29:51 +00:00
Rich Graham
3f5a147c66 proc_info sets the process name.
This commit was SVN r1697.
2004-07-13 21:01:30 +00:00
Ralph Castain
8023bb13c0 Update to session_dir documentation.
This commit was SVN r1671.
2004-07-13 15:07:11 +00:00