1
1
Граф коммитов

313 Коммитов

Автор SHA1 Сообщение Дата
Jeff Squyres
38b814b0cc Convert to use portable ompi_setenv() and ompi_unsetenv()
This commit was SVN r5164.
2005-04-04 22:17:48 +00:00
Jeff Squyres
69f5aa1117 Add missing <netdb.h>
This commit was SVN r5162.
2005-04-04 22:03:18 +00:00
Jeff Squyres
2753522f70 Change the test to properly check uint64_t in ompi_value_array -- it's
a better test to check that instead of int's

This commit was SVN r5157.
2005-04-04 17:53:58 +00:00
Brian Barrett
a00db1a1e4 * return the number of tests failed so that make check aborts properly
This commit was SVN r5150.
2005-04-04 13:29:03 +00:00
Jeff Squyres
709a3e498e Convert gpr_internal_fns to use the new support functions and
internally call function pointers instead of direct calls

This commit was SVN r5140.
2005-04-01 22:18:24 +00:00
Jeff Squyres
842a4e904e Add some new support functions to the unit test library -- for
opening, examining, and closing components.

This commit was SVN r5139.
2005-04-01 22:13:05 +00:00
Ralph Castain
9cbb698ada Begin to add unit tests for the API layer on ras and rmaps.
Fix a compiler warning on dump.

This commit was SVN r5138.
2005-04-01 20:17:49 +00:00
Ralph Castain
d900d8f137 Plug one memory leak - still have one big one left here.
This commit was SVN r5137.
2005-04-01 19:51:47 +00:00
Jeff Squyres
b583c40102 Fix some compile errors, and make the test be skipped if there's no
thread support.

This commit was SVN r5136.
2005-04-01 19:50:17 +00:00
Ralph Castain
96508b3cb3 Continue expanding the range of unit tests. Fix a few memory leaks - orterun continues to leak like a sieve, but progress is being made.
This commit was SVN r5135.
2005-04-01 18:02:01 +00:00
Jeff Squyres
765250cb50 Fix compiler warnings and type comparisons
This commit was SVN r5131.
2005-04-01 13:35:57 +00:00
Ralph Castain
df7ef31b61 Plug a memory leak that crept into the registry.
Modify the locking scheme to try and resolve a problem with dump_triggers that only occurs with multiple processes. Didn't resolve the problem, but should be more robust anyway. Still tracking this one down.

This commit was SVN r5114.
2005-03-31 21:32:12 +00:00
Ralph Castain
8686c60223 Fix the subscription system so it correctly deals with triggers at a level (as opposed to comparing two counters). Combined with Brian's latest checkin, this corrects the tendency for orterun to "hang" when one or more processes abnormally terminate.
This commit was SVN r5109.
2005-03-31 14:24:36 +00:00
Ralph Castain
e3471e1342 Update the unit test matrix
This commit was SVN r5101.
2005-03-30 14:16:02 +00:00
Ralph Castain
35b4fc02e2 Cleanup up some of the util unit tests. Fix a detected problem in orte_os_path for relative path names.
This commit was SVN r5096.
2005-03-29 19:58:32 +00:00
Ralph Castain
dfe49d0fd2 Fix a subtle bug in the registry callback system that was manifesting itself in the singleton case and (randomly) in the multiprocess case.
Update the unit-test-status matrix to include priority.

Add several new registry diagnostics that helped track down the above bug.
M    test/mca/gpr/gpr_triggers.c
M    test/Unit-Test-Status.xls
M    test/Unit-Test-Status.pdf
M    src/mpi/runtime/ompi_mpi_init.c
M    src/mca/oob/base/oob_base_xcast.c
M    src/mca/ns/base/ns_base_nds_env.c
M    src/mca/gpr/replica/api_layer/gpr_replica_dump_api.c
M    src/mca/gpr/replica/api_layer/gpr_replica_api.h
M    src/mca/gpr/replica/communications/gpr_replica_comm.h
M    src/mca/gpr/replica/communications/gpr_replica_remote_msg.c
M    src/mca/gpr/replica/communications/gpr_replica_cmd_processor.c
M    src/mca/gpr/replica/communications/gpr_replica_dump_cm.c
M    src/mca/gpr/replica/gpr_replica_component.c
M    src/mca/gpr/replica/gpr_replica.h
M    src/mca/gpr/replica/functional_layer/gpr_replica_dump_fn.c
M    src/mca/gpr/replica/functional_layer/gpr_replica_fn.h
M    src/mca/gpr/replica/functional_layer/gpr_replica_trig_ops_fn.c
M    src/mca/gpr/replica/functional_layer/gpr_replica_messaging_fn.c
M    src/mca/gpr/replica/functional_layer/gpr_replica_segment_fn.c
M    src/mca/gpr/proxy/gpr_proxy_dump.c
M    src/mca/gpr/proxy/gpr_proxy.h
M    src/mca/gpr/proxy/gpr_proxy_component.c
M    src/mca/gpr/gpr_types.h
M    src/mca/gpr/base/base.h
M    src/mca/gpr/base/unpack_api_response/gpr_base_dump_notify.c
M    src/mca/gpr/base/pack_api_cmd/gpr_base_pack_dump.c
M    src/mca/gpr/gpr.h

This commit was SVN r5080.
2005-03-28 22:37:54 +00:00
Jeff Squyres
226542f98f Remove the dummy output file when the test is done
This commit was SVN r5053.
2005-03-27 12:47:32 +00:00
Jeff Squyres
450cfb0a8c Print out warnings about warnings before warnings appear
This commit was SVN r5052.
2005-03-27 12:05:41 +00:00
Jeff Squyres
da23029c96 Add non-portable fixes to temporarily allow the gpr test(s) to be
built.  The issue is that these tests are trying to test specific
components, and is calling the functions directly -- and therefore
needs to have the component linked in.  This is fine when the
component is statically linked as part of libmpi, but presents a
problem when the component is a DSO.  

GNU compilers/linkers allow us to link in the DSO as part of the test
executable (and everything "just works"), but this is not portable.  A
better solution is going to involve:

- a better unit test support library that can load a DSO on demand
- using function pointers in the unit tests (rather than direct
  function invocation)

This commit was SVN r5051.
2005-03-27 12:01:51 +00:00
Jeff Squyres
a0fd932487 Add missing <unistd.h>
This commit was SVN r5050.
2005-03-27 11:59:23 +00:00
Jeff Squyres
85f211ed4a Update both to match -- skip the tests if OMPI was compiled without
thread support.

This commit was SVN r5049.
2005-03-27 11:55:03 +00:00
Jeff Squyres
fe9601cb51 Skip this test if OMPI was compiled without thread support
This commit was SVN r5048.
2005-03-27 11:52:09 +00:00
Jeff Squyres
948d3709c1 Return the result of the test, not 0.
This commit was SVN r5047.
2005-03-27 11:36:48 +00:00
Jeff Squyres
c227d77c33 try to ensure that the warning about the warning is printed before the
warning

This commit was SVN r5045.
2005-03-27 11:30:53 +00:00
Jeff Squyres
65017ac13c Add some printf's just so that one can see what is going on with the
test.  :-)

This commit was SVN r5039.
2005-03-26 13:09:21 +00:00
Jeff Squyres
b24edd6054 Don't finalize before we're finished
This commit was SVN r5013.
2005-03-24 20:17:06 +00:00
Jeff Squyres
3f5541349a Add UC copyright
This commit was SVN r5009.
2005-03-24 12:43:37 +00:00
Ralph Castain
d5ca02ae6e Add columns for responsible person and for stress test.
This commit was SVN r5006.
2005-03-23 23:10:39 +00:00
Jeff Squyres
ee6b23f2fb - removed unused variables
- fixed incorrect allocation of slot information (can't take the size
  of the fifo until after it has been created!)

This commit was SVN r5001.
2005-03-23 18:46:29 +00:00
Ralph Castain
e2597395e8 Enable the compound command capability to reduce message loads during startup.
Add two files (one .xls and one .pdf) that track the status of unit test development. Comments/revisions welcomed.

This commit was SVN r4999.
2005-03-23 17:50:12 +00:00
Jeff Squyres
b27ea0c413 - fix some signed/unsigned comparisons
- print out that the test is *supposed* to generate a warning

This commit was SVN r4996.
2005-03-23 13:37:46 +00:00
Ralph Castain
bb33402058 Complete the name service unit tests.
This commit was SVN r4994.
2005-03-22 20:48:55 +00:00
Ralph Castain
875da82a6f Begin cleanup of the name service unit tests. Fix an error in create_cellid.
This commit was SVN r4993.
2005-03-22 19:56:45 +00:00
Ralph Castain
7935e05309 Complete checkout/debug of registry unit tests. All checks out okay now, including memory leakage.
This commit was SVN r4992.
2005-03-22 18:58:36 +00:00
Ralph Castain
f6bb79ceef Fix test to properly clear all memory.
This commit was SVN r4991.
2005-03-22 18:46:07 +00:00
Ralph Castain
a97d3228b1 Cleanup memory leak in delete_itag. Update unit test to find it.
This commit was SVN r4990.
2005-03-22 18:40:12 +00:00
Ralph Castain
abd1048646 Cleanup some of the test areas.
Add a memset to if.c so that purify and valgrind stop complaining about uninitialized memory.

This commit was SVN r4988.
2005-03-22 15:37:58 +00:00
Brian Barrett
9b2b3ec078 * Make the sigchld test work again
This commit was SVN r4987.
2005-03-22 15:24:45 +00:00
Brian Barrett
897983ea30 * Fix regression in ompi_argv_delete exposed with the unit tests
* Update a bunch of the unit tests to either be disabled (someone who
  isn't me and knows that code needs to fix them) or to work properly

This commit was SVN r4986.
2005-03-22 14:41:45 +00:00
Brian Barrett
4b6aecf82d * Fix up the test directory so everything uses Automake's "make check" to
build / run.  Only things that actually build / run right now are the
  asm and class tests.  The mca tests probably will with a static build
  but that hasn't been verified

This commit was SVN r4979.
2005-03-22 04:25:01 +00:00
Brian Barrett
aa70a35fea * Sync trunk to r4977 of the tim branch
This commit was SVN r4978.

The following SVN revisions from the original message are invalid or
inconsistent and therefore were not cross-referenced:
  r4977
2005-03-22 00:31:17 +00:00
Brian Barrett
c854ae0edb * more merges from the trunk, mainly to make "make dist" work correctly.
This commit was SVN r4944.
2005-03-19 22:04:32 +00:00
Brian Barrett
77c65d69cc * Merge changes from tim branch from r 4821 to 4892. Tree can now run
MPI and non-ORTE applications for RSH on one node with or without
  threads.  I think we're approaching convergence with the tim branch

This commit was SVN r4895.
2005-03-18 03:43:59 +00:00
Brian Barrett
6822a519bb * results from initial merge of the tim branch into the trunk. Compiles and
ompi_info works, but that's all that has been tested.

This commit was SVN r4827.
2005-03-14 20:57:21 +00:00
Brian Barrett
785c3d1408 * adjust the ompi_argv_delete() function so that it shortens the passed
argv array to match the deletion of elements in the array.

This commit was SVN r3722.
2004-12-07 02:42:17 +00:00
Jeff Squyres
616269a9be Add HLRS copyright
This commit was SVN r3665.
2004-11-28 20:09:25 +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
Ralph Castain
dec119b2a0 Updates to the unit tests for the registry.
This commit was SVN r3477.
2004-11-02 16:28:06 +00:00
Brian Barrett
fc8a7868e7 * fix ompi_ifaddrtoname to return the correct error code (it was returning
OMPI_ERROR if it found something and OMPI_SUCCESS otherwise).  Also
  look for INADDR_NONE instead of INADDR_ANY as the return from inet_addr()
* add convinience function ompi_ifislocal to quickly test if a given
  hostname or IP address (in dotted-quad form) is a local address
* don't ssh to the local machine, but fork() / exec() the bootproxy directly
  if ompi_ifislocal returns true *AND* there is no username specified
  for the given host
* remove the llm hack to translate localhost -> local machine name

This commit was SVN r3450.
2004-10-31 19:01:53 +00:00
Brian Barrett
4e67bf4646 * update to match real function names
This commit was SVN r3449.
2004-10-31 18:06:10 +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
7f2b73a4e5 Fix for bug 989: parse command line properly. Good code to tweak
around with while waiting for other things to compile.  :-)

Since there were some unit tests for the argv interface, took the
liberty of updating it for two new functions that were necessary:
ompi_argv_delete() and ompi_argv_insert().

This commit was SVN r2907.
2004-10-01 18:38:16 +00:00
Jeff Squyres
3f8c5372c6 Fix header file name
This commit was SVN r2906.
2004-10-01 18:26:18 +00:00
Brian Barrett
40c0b6b12d * code to deal with getting callbacks / waiting for SIGCHLD. These should
only be used if the RTE init functions have been called.  Not quite as
  flexible as the real waitpid() function (no -1 support), but all I need
  for the SSH / BProc / RMS pcms.  This code is not yet turned on by
  default (need to add the init / finalize calls to ompi_rte_init?? and
  ompi_rte_finalize()

This commit was SVN r2860.
2004-09-26 17:43:35 +00:00
Jeff Squyres
c91d66836e No need for DIST_SUBDIRS anymore
This commit was SVN r2609.
2004-09-11 06:05:13 +00:00
Brian Barrett
3f11641c67 * don't have ns listed twice in DIST_SUBDIRS. Seems to cause failures for
make maintainer-clean

This commit was SVN r2606.
2004-09-11 01:49:26 +00:00
Ralph Castain
c1ba40c631 Fix mpirun2 and ompi_mpi_init to be fully backward compatible. All required values are now passed via environmental parameters, and the receiving parties know what to do with them.
Added a field to the ompi_rte_node_schedule_t structure to keep track of the number of items on the environ list, thus making it easier to append more things to it. Adjusted the mca_pcm_base_build_base_env function correspondingly to take that field as an additional argument.

Changed mpirun2 to a .c program for convenience since it wasn't using any c++ features anyway.

This commit was SVN r2561.
2004-09-09 15:23:41 +00:00
Ralph Castain
08f6491ae2 Update the registry unit test.
This commit was SVN r2536.
2004-09-08 14:09:58 +00:00
Brian Barrett
1a100e65c1 * rework the pcm/llm interface to be more non-rsh friendly. Push the
host / cpu information down into a handle that need not exist when
  the llm isn't being used.  Fix all the test cases and whatnot to match

This commit was SVN r2490.
2004-09-03 19:19:59 +00:00
Laura Casswell
f52b0b17e5 make more general
This commit was SVN r2483.
2004-09-03 15:03:42 +00:00
Laura Casswell
2d950075a2 make more general
This commit was SVN r2480.
2004-09-03 14:53:47 +00:00
Laura Casswell
87d464b894 make more general
This commit was SVN r2479.
2004-09-03 14:46:35 +00:00
Laura Casswell
30aff069e6 add run script
This commit was SVN r2478.
2004-09-03 14:40:53 +00:00
Laura Casswell
cb87f837d8 add run script
This commit was SVN r2477.
2004-09-03 14:40:32 +00:00
Laura Casswell
2a63fb47ec fix typo
This commit was SVN r2476.
2004-09-03 14:39:53 +00:00
Laura Casswell
aca8377db9 add ns and make run script more general
This commit was SVN r2475.
2004-09-03 14:31:36 +00:00
Laura Casswell
fcca758e9a make more general
This commit was SVN r2474.
2004-09-03 14:23:37 +00:00
Laura Casswell
22bc29e50a fix typos in help and make more general
This commit was SVN r2473.
2004-09-03 14:23:08 +00:00
Laura Casswell
1049bf79ca make more general
This commit was SVN r2472.
2004-09-03 14:18:02 +00:00
Laura Casswell
54825ec955 make more general
This commit was SVN r2471.
2004-09-03 14:11:19 +00:00
Laura Casswell
7dfe48ec94 add run script
This commit was SVN r2470.
2004-09-03 14:08:36 +00:00
Laura Casswell
699b4fb860 make more general
This commit was SVN r2469.
2004-09-03 13:58:25 +00:00
Laura Casswell
e613ac2459 fix help line
This commit was SVN r2468.
2004-09-03 13:55:53 +00:00
Laura Casswell
ae1a20a354 make more general
This commit was SVN r2466.
2004-09-03 13:51:39 +00:00
Laura Casswell
ed4fd14f1c make script more flexible, add new test
This commit was SVN r2465.
2004-09-03 13:37:31 +00:00
Laura Casswell
80be42cc27 make script more flexible
This commit was SVN r2464.
2004-09-03 12:55:00 +00:00
Laura Casswell
9aef410fcf fix comments and add messages
This commit was SVN r2463.
2004-09-03 12:52:04 +00:00
Laura Casswell
c28e502dee make run script more flexible
This commit was SVN r2462.
2004-09-03 12:43:50 +00:00
Laura Casswell
8b3b1c5414 add ompi_pack
This commit was SVN r2414.
2004-08-31 18:13:30 +00:00
Laura Casswell
9b6c840370 remove links to .lo's that no longer exist
This commit was SVN r2397.
2004-08-30 18:46:38 +00:00
Rich Graham
c2a68eeff9 change the fifo code so that all arrays are referenced relative to
a base offset, so that different procs can access these w/o having
to be in the same virtual address.  Update tests.

This commit was SVN r2387.
2004-08-30 01:25:03 +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
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
Tim Woodall
16d250b376 - integration of gpr/ns/oob w/ mpirun2
This commit was SVN r2344.
2004-08-28 01:15:19 +00:00
Rich Graham
59f339f06b add test for ompi_fifo functions.
This commit was SVN r2328.
2004-08-27 16:31:27 +00:00
Ralph Castain
f1ab634fab Massive update of the registry system to incorporate publish/subscribe notifications, including new "synchro" function that allows a barrier-like operation to be performed on a registry segment. Corresponding update to unit test for replica - system passes, but additional new functionality needs to be added to test.
This commit was SVN r2317.
2004-08-27 05:23:04 +00:00
Rich Graham
21402b68bb change circular buffer fifo calls to reflect changes.
This commit was SVN r2285.
2004-08-24 20:18:29 +00:00
Jeff Squyres
7561dc0c3e Remove "rte" from DIST_SUBDIRS because it is causing "make dist" to
fail.  test/rte/Makefile was removed from the top-level configure.ac
AC_CONFIG_FILES in r2239.  I'm not sure what the intent was here, so
I'm just removing "rte" from test/Makefile.am's DIST_SUBDIRS so that
"make dist" can work again.  One of the RTE folks can examine this to
see what the right course of action for the long run is.  :-)

This commit was SVN r2257.

The following SVN revision numbers were found above:
  r2239 --> open-mpi/ompi@58792a3ad0
2004-08-23 06:47:44 +00:00
Ralph Castain
b64dc67d7a Complete updating of tests to reflect new functionality.
This commit was SVN r2249.
2004-08-20 13:59:34 +00:00
Tim Woodall
300e4135ac fix for asprintf issue on linux - include ompi_config.h first
This commit was SVN r2241.
2004-08-19 22:23:34 +00:00
Tim Woodall
b592ef6643 run both client-server
This commit was SVN r2237.
2004-08-19 19:46:12 +00:00
Tim Woodall
e05e7ca942 gpr proxy i/f (put) seems to be working w/ tcp oob!
This commit was SVN r2235.
2004-08-19 19:34:37 +00:00
Ralph Castain
8fd9c65362 Fix a few glitches in the new version of put. Updated unit test to comply with changes.
This commit was SVN r2229.
2004-08-19 19:15:18 +00:00
Ralph Castain
56a3fd8f36 Changed the GPR interface (per Tim's request) so that a "put" will automatically create the specified segment if it doesn't already exist. You will not need to create it explicitly.
Added the gpr test directory to configure.ac, and updated the tests.

This commit was SVN r2228.
2004-08-19 16:51:51 +00:00
Laura Casswell
61291736c6 and build_env test
This commit was SVN r2225.
2004-08-19 13:47:09 +00:00
David Daniel
580a9143d5 Updating tests to reflect changes in os/atomic.h -> include/sys/atomic.h
This commit was SVN r2222.
2004-08-18 23:25:42 +00:00
Graham Fagg
bbcd4b0330 fixed comments
This commit was SVN r2220.
2004-08-18 23:21:45 +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
Rich Graham
b0a19d3fe6 add tests to run through queue multiple times, and correct for new
read interface.

This commit was SVN r2215.
2004-08-18 22:52:02 +00:00