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

693 Коммитов

Автор SHA1 Сообщение Дата
Brian Barrett
dfdb5dc12a * high resolution, low latency timers for a number of platforms, plus mods
to opal_progress() to use the timers instead of a tick count for deciding
  whether to call the event loop or not.  Currently supported platforms are:

     - solaris (x86 / sparc)
     - Linux (x86 / x86_64 / IA64)
     - Mac OS X (x86 / Power PC)

This commit was SVN r6922.
2005-08-18 05:34:22 +00:00
Brian Barrett
1134d9b7d7 * remove old, broken, horrible hack for doing memory intercepts on Darwin
* Add memory intercept routines for Darwin using the official Darwin
  API (thanks to Drew Gallatin from Myricom for pointing me to some
  information from Apple engineers about how to make this work)
* add debugging output to functionality test

This commit was SVN r6920.
2005-08-18 02:59:02 +00:00
Brian Barrett
4b3969d2ab * add header file so that this compiles again
This commit was SVN r6917.
2005-08-17 22:44:13 +00:00
Jeff Squyres
c465eb8567 Rename opal/threads/thread.h -> opal/threads/threads.h to avoid a
naming conflict with Solaris' <thread.h>

This commit was SVN r6879.
2005-08-15 11:02:01 +00:00
Brian Barrett
b514fc10da * add WRAPPER_LDFLAGS to LDFLAGS, since we might be adding random hooks in
there

This commit was SVN r6871.
2005-08-14 17:22:54 +00:00
Brian Barrett
683e80c48b * fix basic test to work better when using memory intercept methods that
only catch actual releases back to the OS

This commit was SVN r6866.
2005-08-14 03:10:51 +00:00
Brian Barrett
1b830beddb * move over changes from the /tmp/bwb-memory-hooks/copy-1 into the trunk.
This includes updates to the malloc_hook method and making everything
  components.

This commit was SVN r6852.
2005-08-13 01:08:34 +00:00
Brian Barrett
c9f5e591b1 * make sure to try munmap when testing the hooks
* add check to see impact of our hooks with malloc/free timings

This commit was SVN r6817.
2005-08-12 13:29:26 +00:00
Brian Barrett
f707ba2dd3 * Add memory dispatching code for OPAL. This allows anyone to register
callbacks to be triggered when memory is about to leave the current
  process.  The system is designed to allow a variety of interfaces,
  hopefully including whole-sale replacement of the memory manager,
  ld preload tricks, and hooks into the system memory manager.  Since
  some of these may or may not be available at runtime and we won't know
  until runtime, there is a query funtion to look for availability of
  such a setup.
* Added ptmalloc2 memory manager replacement code.  Not turned on by
  default, can be enabled with --with-memory-manager=ptmalloc2.
  Only tested on Linux, not even compiled elsewhere.  Do not use
  on OS X, or you will never see your process again.
* Added AM_CONDITIONAL for threads test to support ptmalloc2's build
  system

This commit was SVN r6790.
2005-08-09 22:40:42 +00:00
Ralph Castain
5208f9001d Update the gpr unit tests
This commit was SVN r6758.
2005-08-07 13:09:34 +00:00
Ralph Castain
4e1837687b Finish simplified interfaces for put and subscribe - more details to come.
This commit was SVN r6713.
2005-08-02 19:43:29 +00:00
Ralph Castain
ed1022afd3 Update the unit test for the new put functions.
I'll send out a general note about this in the morning, but for now I'll just notify people through this note that the new simplified "put" commands have been debugged and work just fine. I'll add documentation to the gpr.h file later - only think to really be aware of is that the tokens array must be NULL terminated. Other than that, things work pretty much as you'd expect.

This commit was SVN r6700.
2005-08-02 02:31:53 +00:00
Ralph Castain
63cef99bcd Add unit test for quick put function - not fully ready yet
This commit was SVN r6693.
2005-08-01 21:45:39 +00:00
Jeff Squyres
28d6651350 Oops -- that should not have been committed.
This commit was SVN r6599.
2005-07-24 11:27:56 +00:00
Jeff Squyres
9dab81d86b A bunch of updates to the unit tests
- Update svn:ignore's to match new exectuable names
- Consolidate the unit test Makefile.am flags into a testing
  Makefile.options 
- Remove a bunch of SUBDIRS from test/mca/Makefile so that they don't
  run by default, but can be invoked manually (they're still in
  DIST_SUBDIRS) 

This commit was SVN r6598.
2005-07-23 11:11:19 +00:00
Ralph Castain
13fdcff66b Fix a bug Greg was seeing on subscription returns - problem in pointer arithmetic
This commit was SVN r6594.
2005-07-22 20:46:07 +00:00
Ralph Castain
daf3ee8172 fix the dps tests to support new notify_data type definition
This commit was SVN r6568.
2005-07-20 19:00:54 +00:00
Brian Barrett
b04c726ad1 Fix up tests so that they all compile and (mostly) run
This commit was SVN r6338.
2005-07-04 14:53:10 +00:00
Brian Barrett
46245aaac1 * rename orte_os_create_dirpath to opal_os_create_dirpath
* rename orte_os_path to opal_os_path
* rename ompi_path_find to opal_path_find
* rename ompi_pow2 to opal_pow2

This commit was SVN r6334.
2005-07-04 01:59:52 +00:00
Brian Barrett
e55f99d23a * rename ompi_if to opal_if
* rename ompi_malloc to opal_malloc
* rename ompi_numtostr to opal_numtostr
* start of rename of ompi_environ to opal_environ

This commit was SVN r6332.
2005-07-04 01:36:20 +00:00
Brian Barrett
9f44b80291 * rename ompi_argv to opal_argv
* rename ompi_basename to opal_basename
* rename ompi bitop functions to opal
* rename ompi_cmd_line to opal_cmd_line
* rename ompi_sizet2int to opal_sizet2int
* rename orte_daemon_init to opal_daemon_init
* rename ompi_few to opal_few

This commit was SVN r6330.
2005-07-04 00:13:44 +00:00
Brian Barrett
a13166b500 * rename ompi_output to opal_output
This commit was SVN r6329.
2005-07-03 23:31:27 +00:00
Brian Barrett
23b687b0f4 * rename ompi_event to opal_event
This commit was SVN r6328.
2005-07-03 23:09:55 +00:00
Brian Barrett
39dbeeedfb * rename locking code from ompi to opal
This commit was SVN r6327.
2005-07-03 22:45:48 +00:00
Brian Barrett
ccd2624e3f * rename ompi_progress to opal_progress
This commit was SVN r6326.
2005-07-03 21:57:43 +00:00
Brian Barrett
9da0b4fe1d * rename all the atomic functions from ompi to opal
This commit was SVN r6325.
2005-07-03 21:38:51 +00:00
Brian Barrett
9f0c969bb4 * rename ompi_hash_table opal_hash_table
This commit was SVN r6324.
2005-07-03 16:52:32 +00:00
Brian Barrett
764a9314db * rename ompi_value_array opal_value_array
This commit was SVN r6323.
2005-07-03 16:38:52 +00:00
Brian Barrett
761402f95f * rename ompi_list to opal_list
This commit was SVN r6322.
2005-07-03 16:22:16 +00:00
Brian Barrett
499e4de1e7 * rename ompi_object and ompi_class to opal_object and opal_class
This commit was SVN r6321.
2005-07-03 16:06:07 +00:00
Jeff Squyres
76ba66734d I gave bad advice to Ralph yesterday; he asked how to disable the gpr
unit tests without screwing up the nightly builds.

These changes fix the problem of not including the test/mca/gpr
directory in the nightly tarball, prevent the tests from being
compiled, but leave the door open for manual compilation when the time
comes to start the work to re-enable them (e.g., uncomment a few
lines in gpr/Makefile.am).

This commit was SVN r6175.
2005-06-25 11:21:59 +00:00
Ralph Castain
8271d3f30e Okay, here is the massive checkin that restructures the registry trigger system for scalability. Actually, it isn't "quite" as large as it looks - it just touches a bunch of files.
Also included is a fix to the attribute problem for singletons.

Short explanation:
The prior system placed triggers and subscriptions on the registry for each process - approximately eight/process. Each of these had to be checked every time there was a registry operation such as a "put" or "increment-value". For large numbers of processes, this repetitive checking consumed some significant time.

The new system allows processes to "attach" to existing triggers and subscriptions, without creating a new one. Thus, there are now only eight triggers and five subscriptions on a job - *regardless of how many processes are being run*. This means that the registry now takes the same amount of time (which is pretty darn short) to process an operation regardless of how many processes are in a job.

I'll provide some startup times from scalability tests shortly - need to complete the commit so I can move the system to an appropriate cluster.

This commit was SVN r6164.
2005-06-24 16:59:37 +00:00
Jeff Squyres
d9b0aa9654 Temporarily comment out the test_rds2 test because all it does is test
the RDS selection logic, which is, unfortunately, not yet well
supported by the testing infrastructure (it causes false failures in
the nightly build).

This commit was SVN r6073.
2005-06-16 11:25:27 +00:00
Ralph Castain
83cba7f7cf Checkpoint. Fixed a logic problem that removed one-shot subscriptions even though the notifiers were supposed to stay.
This commit was SVN r6052.
2005-06-13 20:43:05 +00:00
Ralph Castain
098cc8cf3a Bring the rest of the notification modes online. Update the unit test to cover notify-on-change.
This commit was SVN r6043.
2005-06-13 14:37:02 +00:00
Ralph Castain
1c57ae20b0 Checkpoint the notifier work - notify when something is added now works, need to simply turn on the other checks.
Existing code shouldn't see any impacts. Tested on up to 125 processes.

This commit was SVN r6020.
2005-06-09 20:37:25 +00:00
Ralph Castain
51380eba13 Checkpoint the continuing re-enablement of the notifiers.
Also added a check to protect the callback system from an error being seen by Tim P. - should help with debugging.

This commit was SVN r6010.
2005-06-09 13:35:35 +00:00
Ralph Castain
7306b9d7b9 Fix the registry search routine to remove a buffer that wasn't expanding as it should - cause of recent problems observed when spawning larger numbers of processes.
For anyone interested, the problem stemmed from two things:

1. a bug in the ompi_bitmap utility (which I copied to orte_bitmap to avoid unintentionally disturbing something else) that causes the bitmap NOT to expand unless the caller asks for a bit that is more than one byte outside the current array size. The unit test didn't pick it up because it doesn't check that close to the boundary.

2. a "feature" in the ompi_bitmap utility that only expands the array if you try to SET a bit outside the current boundary, but NOT if you try to CLEAR a bit outside the array limit. This appears intentional as the unit test checks for this behavior, but I hadn't been expecting the asymmetry.

The orte_bitmap utility now appropriately expands in both circumstances. I also added a function to expand the array so it "covers" a bit location without setting or clearing it. The function allows you to ensure the array is big enough to handle the specified bit, but leave the bit alone if it already is there (the other functions would set/clear it if it was).

I've tested it with up to 100 processes without problem.

This commit was SVN r5980.
2005-06-08 15:48:38 +00:00
Galen Shipman
aaa236052d changed function signitures to match the changes in mpool
This commit was SVN r5911.
2005-06-01 15:25:17 +00:00
Tim Prins
75b0b519d8 - Added functionality to MPI_Alloc_mem and MPI_Free_mem so that they
call the memory pool to do special memory allocations, and extended 
the mpool so that it will do the allocations and keep tack of them in
a tree. Currently, if you pass MPI_INFO_NULL to MPI_Alloc_mem, we will 
try to allocate the memory and register it with as many mpools as 
possible. Alternatively, one can pass an info object with the names of 
the mpools as keys, and from these we decide which mpools to register 
the new memory with.

- fixed some comments in the allocator and fixed a minor bug

- extended the red black tree test and made a minor correction

This commit was SVN r5902.
2005-05-31 19:07:27 +00:00
Ralph Castain
93eb0d4b40 Checkpoint
This commit was SVN r5814.
2005-05-23 14:22:35 +00:00
Ralph Castain
689a290711 Add one further degree of separation between opal and orte - allow separate init of the two systems. This allows the restart capability to avoid hitting opal utilities (e.g., mca_base_open, ompi_output_init) repeatedly.
Clean up the ignores as well.

This commit was SVN r5811.
2005-05-22 18:40:03 +00:00
Ralph Castain
7b6db8a18f Can now start/finalize/restart the run-time without crashing.
Add a unit test for that functionality - will test more fully next week.

This commit was SVN r5806.
2005-05-22 03:11:33 +00:00
Ralph Castain
54a481cc14 Fix an incorrect free...
This commit was SVN r5724.
2005-05-16 21:06:09 +00:00
Ralph Castain
89b6a97f0f Bring the resource discovery system's resource file component online so I can find the node I need to launch upon. I removed all reference to the xml library that was causing trouble, and wrote my own limited xml parser instead, so this will now compile just fine anywhere.
Need to do some refining of the component, but it meets basic requirements right now. Nobody else should notice any change - system basically ignores it unless you tell it to do something.

This commit was SVN r5723.
2005-05-16 21:01:09 +00:00
Jeff Squyres
722ee2103b Fix to the fix -- Brian and I agree that this is a better fix.
This commit was SVN r5693.
2005-05-12 02:44:20 +00:00
Jeff Squyres
2b2f2f3c04 Fix a bunch of compiler warnings, mostly on 64 bit:
- some union { void*; int; } fixes for asm tests
- size_t / %lu fixes for a bunch of others

This commit was SVN r5677.
2005-05-10 23:28:31 +00:00
Jeff Squyres
a28b5ae43b Fix for a bunch of size_t issues; reviewed by George and Ralph.
- Change all uses of *printf'ing a size_t to use an explicit cast to
  (unsigned long) and the %lu escape
- change ORTE_GPR_REPLICA_MAX_SIZE to INT_MAX until bug 1345 is fixed
  (i.e., until we allow size_t in MCA params)
- ns_base_local_fns.c:orte_ns_base_get_proc_name_string(): changed
  from %0X -> %lu
- ORTE_NAME_ARGS added explicit (unsigned long) casts, and changed all
  usages of ORTE_NAME_ARGS to use %lu's

This commit was SVN r5644.
2005-05-08 13:22:55 +00:00
Ralph Castain
659d57f300 Several things in this commit - shouldn't impact any existing work:
1. Added pid_t to the dps

2. Processes now "register" their local pid and update their location (i.e., nodename) on the registry during mpi_init

3. Added a new error code for values that exceed maximum for their data type (useful when transitioning a value from one variable to another of different size)

4. Fixed a few places where size_t was being incorrectly handled

5. Updated dps_test to cover pid_t types

This should now provide support for TotalView connection - which David is pursuing.

This commit was SVN r5623.
2005-05-06 17:00:06 +00:00
Jeff Squyres
e1ab50d5e9 Add missing header files
This commit was SVN r5583.
2005-05-04 00:13:40 +00:00
Ralph Castain
44b83e73ef Fix the print warnings for the name services conversions on names from their binary value to a string.
HEADS UP: string versions of names are now presented in DECIMAL format - not HEX as they previously were. If you used the name services functions (as you were supposed to do) to access these names, you will not have any problems. If you did it yourself, then you need to fix it - my suggestion would be that you fix your code by using the name service functions to avoid future problems.

This commit was SVN r5571.
2005-05-02 15:06:13 +00:00
Ralph Castain
931924397c Fix several minor things:
1. *correctly* fix the printing of size_t variables. Need to do this through a #define, not just typecast things. Thanks to Jeff/Brian for suggesting a cleaner way to do it (as opposed to just doing the #define at the print location). Note that not ALL of the prints have been "fixed" yet - will continue to identify them.

2. Add int64 and size_t to the pack/unpack unit tests.

3. Fix a bug in the int64 pack/unpack system.

This commit was SVN r5570.
2005-05-02 14:48:57 +00:00
Jeff Squyres
bcd4797389 Commit 4 of 4 for bringing the changes over from the hetero branch.
Merged in from:

svn merge -r5506:5553 https://svn.open-mpi.org/svn/ompi/tmp/hetero .

This commit was SVN r5552.

The following SVN revisions from the original message are invalid or
inconsistent and therefore were not cross-referenced:
  r5506
  r5553
2005-05-01 00:58:06 +00:00
Jeff Squyres
aa70022dc2 Commit 2 of 4 for bringing the changes over from the hetero branch.
Merged in from:

svn merge -r5448:5496 https://svn.open-mpi.org/svn/ompi/tmp/hetero .

This commit was SVN r5550.

The following SVN revisions from the original message are invalid or
inconsistent and therefore were not cross-referenced:
  r5448
  r5496
2005-05-01 00:53:00 +00:00
Jeff Squyres
462adee81a Commit 1 of 4 to bring in the hetero branch to the trunk. Merged in
from:

svn merge -r5440:5448 https://svn.open-mpi.org/svn/ompi/tmp/hetero .

This commit was SVN r5549.

The following SVN revisions from the original message are invalid or
inconsistent and therefore were not cross-referenced:
  r5440
  r5448
2005-05-01 00:47:35 +00:00
Rainer Keller
ebfee139e0 Small updates to build_tarball:
- allow bz2 uncompression
 - do not try to detect download-program, if file_arg

Allow VPATH-build in test of asm-check

This commit was SVN r5522.
2005-04-28 15:04:00 +00:00
Brian Barrett
de128a69fb Skip test when on old LinuxThreads machines and using progress threads
since you can't fork() in one thread and waitpid() on the child in another,
which is what this test expects you to do.  If Linux would just implement
the stupid POSIX standard already, this wouldn't be a problem.

This commit was SVN r5482.
2005-04-21 19:33:18 +00:00
Brian Barrett
0964152893 clean up the OMPI_BUILDING #define. Rather than being defined to 1 if
we are part of the source tree and not defined otherwise, we are going
with an always defined if ompi_config.h is included policy.  If
ompi_config.h is included before mpi.h or before OMPI_BUILDING is set,
it will set OMPI_BUILDING to 1 and enable all the internal code that
is in ompi_config_bottom.h.  Otherwise, it will only include the
system configuration data (enough for defining the C and C++ interfaces
to MPI, but not perturbing the user environment).

This should fix the problems with bool and the like that the Eclipse
folks were seeing.  It also cleans up some build system hacks that
we had along the way.

Also, don't use int64_t as the default size of MPI_Offset, because it
requires us including stdint.h in mpi.h, which is something we really
shouldn't be doing.

And finally, fix a ROMIO Makefile that didn't set -DOMPI_BUILDING=1,
as ROMIO includes mpi.h, but not ompi_config.h

This commit was SVN r5430.
2005-04-19 03:51:20 +00:00
Brian Barrett
5f4a433086 * remove unused file
This commit was SVN r5428.
2005-04-19 03:43:42 +00:00
Brian Barrett
cd76153a74 * dumb bug fixes
This commit was SVN r5422.
2005-04-18 19:52:39 +00:00
Brian Barrett
63bd314a0b * Update ASM tests to do more thread testing (which should help find bugs)
* Update cmpset test to call memory barrier when needed before checking the
  results
* remove unneeded sync from cmpset_32 on Power PC

This commit was SVN r5420.
2005-04-18 19:33:23 +00:00
Jeff Squyres
41db769781 Add a whole bunch of missing <util/output.h> files
This commit was SVN r5408.
2005-04-16 14:14:51 +00:00
Jeff Squyres
61f55f1011 Fix the problem with the nightly unit tests -- do *not* override
OMPI_ENABLE_DEBUG because that changes the size of struct's (e.g.,
ompi_object) in the unit tests as compared to what may have been
compiled in the library.

This commit was SVN r5373.
2005-04-15 13:32:18 +00:00
Jeff Squyres
0cdcba3403 Add new utility function ompi_basename() for a portable version of
basename with stronger guarantees on its semantics.  See the doxygen
comments for how to call and use it.

This commit was SVN r5329.
2005-04-14 14:04:41 +00:00
Jeff Squyres
2be1a1a2f3 Fixes provided by Ralph to help cleanup of the session directory,
especially upon abnormal termination of a process.  Not yet integrated
into the fork pls; pending more discussion with other developers.

This commit was SVN r5326.
2005-04-14 01:04:26 +00:00
Jeff Squyres
e15d0778ae Don't test for a bad condition
This commit was SVN r5323.
2005-04-13 21:25:25 +00:00
Jeff Squyres
2aea9cd484 Add some missing header files.
This commit was SVN r5242.
2005-04-09 14:29:29 +00:00
Jeff Squyres
f65cc5febf Fix ompi_list test to properly initialize its list items
This commit was SVN r5229.
2005-04-08 18:05:13 +00:00
Jeff Squyres
88b1326554 Double drat! Forgot to commit the support library updates. :-(
This commit was SVN r5228.
2005-04-08 17:56:16 +00:00
Jeff Squyres
2d802bafab Convert over the rest of the unit tests to dynamically open components
(oops -- didn't realize there were so many that needed it)

This commit was SVN r5223.
2005-04-08 11:21:43 +00:00
Ralph Castain
c52a21e1b3 Fix a couple of minor bugs that were preventing the session directory system from completely cleaning up. Unit test now shows that it will cleanup all session directory levels IF no files are present.
This commit was SVN r5210.
2005-04-07 19:19:48 +00:00
Jeff Squyres
2bd8347a7e Fix compiler warnings
This commit was SVN r5189.
2005-04-06 01:46:39 +00:00
Jeff Squyres
5946d303d8 Make this test compile again
This commit was SVN r5186.
2005-04-05 20:40:22 +00:00
Jeff Squyres
c36eab4749 32/64 fixes (ensure that our classes really at 64 bit clean -- and
they are!  Mostly the tests needed to be adjusted to run on 32 and 64
systems)

This commit was SVN r5185.
2005-04-05 20:34:56 +00:00
Jeff Squyres
c19182a0d7 Remove compiler warning
This commit was SVN r5184.
2005-04-05 19:54:56 +00:00
Jeff Squyres
066dd5cbac Fix some minor issues:
- (void*) <--> function pointer casting
- missing <string.h>

This commit was SVN r5183.
2005-04-05 19:53:56 +00:00
Jeff Squyres
b5459e9da6 Convert the rest of the GPR tests to use loading DSO's and function
pointers instead of direct function invocations.

This commit was SVN r5180.
2005-04-05 18:18:27 +00:00
Jeff Squyres
394be4e6cb Ensure that the output is printed
This commit was SVN r5173.
2005-04-05 02:32:57 +00:00
Jeff Squyres
205ed1d9d9 @#@#$ Accidentally reverse-backed out the patch in this file, causing
replicated code.  Doh!

This commit was SVN r5171.
2005-04-05 02:12:44 +00:00
Jeff Squyres
1701010301 Back out this patch; it appears to break in at least 64 bit
environments.  Working on the fix, but don't break everyone's unit
tests while I'm working on it -- will re-commit once ompi_setenv() and
ompi_unsetenv() are fixed.

This commit was SVN r5166.
2005-04-04 22:55:26 +00:00
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
Brian Barrett
964fd9c758 * More changes for the rsh pcm:
- make sure to pass jobid to the spawned process
  - update test case and bootproxy to pass/receive jobid
  - work on list splitting code for rsh spawn_procs()

This commit was SVN r2212.
2004-08-18 20:34:20 +00:00
Brian Barrett
faebdd3404 * rework build_base_env to take an env pointer rather than assuming environ
* rework build_base_env to use newly discovered (by me, anyway) argv
  interface
* add test case for build_base_env where I discovered I can't do boolean
  logic....

This commit was SVN r2209.
2004-08-18 16:33:01 +00:00
Tim Woodall
e74432addf test code requires tcp oob
This commit was SVN r2207.
2004-08-18 16:15:38 +00:00
Tim Woodall
7ccabbdcc7 test for name server proxy
This commit was SVN r2206.
2004-08-18 16:13:13 +00:00
Laura Casswell
8ba268c8dd fix warnings and link
This commit was SVN r2198.
2004-08-18 14:12:33 +00:00
Rich Graham
29b8a543af add more tests - finish non-threaded testing.
This commit was SVN r2189.
2004-08-17 21:49:29 +00:00
Ralph Castain
b0ea8e0b06 Added "put" function and completed unit test for it. Updated gpr.h to include mode "none" for empty flag.
This commit was SVN r2187.
2004-08-17 19:33:36 +00:00
Brian Barrett
c5ebf49f41 * Modifications to the ompi_list_t interface and test suite
- added ompi_list_splice and ompi_list_join, which are multi-list
    manipulation functions similar to the splice functions in the STL
    list interface
  - added ompi_list_is_empty() for O(1) testing of for an empty list
  - added note that sometime in the future, ompi_list_get_size() may
    change to O(N) complexity.  DID NOT CHANGE THE FUNCTION IN ANY WAY.

If you are writing new code that needs to check for an empty list, please
use ompi_list_is_empty() rather than ompi_list_get_size() as is_empty()
will always be an O(1) operation (I can't see how you could make it
impossible to make it O(1), so this seems like a safe claim).

This commit was SVN r2186.
2004-08-17 19:31:07 +00:00
Ralph Castain
964ad6ae46 Added hook to test internal subsystems. Expanded unit test to exploit. Fixed a few bugs.
This commit was SVN r2177.
2004-08-17 04:23:06 +00:00
Rich Graham
30f1b87165 add to the circular buffer unit test
This commit was SVN r2171.
2004-08-16 23:07:10 +00:00
Ralph Castain
0d7c16f400 Update the registry with some functionality and an early draft of the unit test.
I could use some help from one of you MCA gurus - if you run the test, you'll see that I cannot get the gpr components to be recognized. I'm not sure of the reason - I would appreciate any help you can provide to get the gpr components "registered".

This commit was SVN r2158.
2004-08-16 02:08:48 +00:00
David Daniel
a1688d5b9f more atomic.h changes
This commit was SVN r2157.
2004-08-16 01:13:25 +00:00
Rich Graham
0fbf919658 start to implement test for the circular buffer fifo implementation.
This commit was SVN r2128.
2004-08-13 19:48:32 +00:00
Brian Barrett
5540dc37bc * Change from ompi_list_t to ompi_list_t* in the schedule and allocation
structures to make it easier to swap around lists when doing process ->
  resource mapping
* Fix spawn interface to take an ompi_list_t* instead of an ompi_list_t
  since you can't pass an ompi_list_t by value
* Change allocate_resource to return an ompi_list_t* instead of having
  an ompi_list_t** as an argument, since it's a bit cleaner and makes
  who should call OBJ_NEW much more clear
* Clean up deallocation in error cases for the llm_base_allocate function
* Update test case for llm to not depend on current environment for
  correctness

This commit was SVN r2126.
2004-08-13 19:39:06 +00:00
Tim Woodall
ac977827b9 implement the MCA_OOB_ALLOC flag for recv - in this case the library allocates a buffer
for the receive and returns it to the caller - who is then responsible for freeing it.

This commit was SVN r2115.
2004-08-13 15:15:14 +00:00
Graham Fagg
a74f35d76f Added oob_test_packed unit test, update makefile etc
Looks like it works:
SUPPORT: OMPI Test Passed: oob packed recieve then send: (15 tests)
SUPPORT: OMPI Test Passed: oob packed send then recieve: (15 tests)

This commit was SVN r2110.
2004-08-13 04:18:43 +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
0bfa0d1f12 hashed out the soon to be defunct mca_oob_.. types.
This commit was SVN r2104.
2004-08-12 23:46:18 +00:00
Graham Fagg
959be36a9c Added ompi_pack test and updated the Makefile.am to find it
- the test suite put the test in a different memory layout than standalone and it did find a memory error straight away....

This commit was SVN r2097.
2004-08-12 23:07:21 +00:00
Graham Fagg
1d780192ef Added test_comment() that prints user string to STDOUT unlike test_* which print to STDERR.
Used for more verbose test results when needed.

This commit was SVN r2096.
2004-08-12 23:03:39 +00:00
Tim Woodall
a2bc814a08 OOB API changes:
- removed send_hton/recv_ntoh routines as we now have send_packed/recv_packed 
- removed constness from apis
- adding flag (in work) to allow recv to allocate and return recv buffer
- updated edgars communicator code to use pack routines rather than ntoh routines

This commit was SVN r2095.
2004-08-12 22:41:42 +00:00
Laura Casswell
478de2a9fa this will run the test but is incomplete. We need to set up a standard
environment so the sched_comm test will have a standard result

This commit was SVN r2094.
2004-08-12 21:48:26 +00:00
Laura Casswell
5b60687358 add pcm
This commit was SVN r2093.
2004-08-12 21:38:21 +00:00
Laura Casswell
32678592a2 fix makefile to use mpilib
This commit was SVN r2091.
2004-08-12 19:38:32 +00:00
Brian Barrett
192ff6867f * Add "serialization" of ompi_rte_schedule_t structs for sending over sockets
or rsh/ssh stdin/stdout, even includes a test case
* add base function for use when PCMs can't provide uniqueness strings, so
  that we all have the same value

This commit was SVN r2082.
2004-08-12 06:55:04 +00:00
Brian Barrett
595bcfe09b * fix type name changes
This commit was SVN r2079.
2004-08-11 22:27:24 +00:00
Laura Casswell
272998ab4b add simple run script for rte tests
This commit was SVN r2078.
2004-08-11 22:18:36 +00:00
Laura Casswell
fa8e8887a2 add test support routines and reporting
This commit was SVN r2077.
2004-08-11 22:15:02 +00:00
Ginger Young
69b8be7d8c Updated to fix compiler errors. ompi_session_dir.c needs to be re-visited at a later date to make certain that everything is being tested.
This commit was SVN r2067.
2004-08-11 19:50:58 +00:00
Laura Casswell
b8f5447d56 fix comments and usage text
This commit was SVN r2058.
2004-08-11 17:30:07 +00:00
Laura Casswell
9b32917016 fix usage text
This commit was SVN r2057.
2004-08-11 17:28:49 +00:00
Laura Casswell
af872b6548 fix usage text
This commit was SVN r2056.
2004-08-11 17:27:56 +00:00
Laura Casswell
eacf8e4346 fix usage text
This commit was SVN r2055.
2004-08-11 17:27:28 +00:00
Laura Casswell
cb02cf962c add simple script to run tests
This commit was SVN r2054.
2004-08-11 17:25:56 +00:00
Laura Casswell
fef74ce9e1 fix comments and usage statement
This commit was SVN r2053.
2004-08-11 17:23:40 +00:00
Laura Casswell
664d5c652d fix comments and usage message
This commit was SVN r2052.
2004-08-11 17:22:28 +00:00
Laura Casswell
0f848961e3 fix comments
This commit was SVN r2051.
2004-08-11 17:20:34 +00:00
Laura Casswell
4996885279 add simple script to run tests
This commit was SVN r2050.
2004-08-11 17:14:23 +00:00
Laura Casswell
a323f2210f fix link
This commit was SVN r2049.
2004-08-11 17:09:40 +00:00
Tim Prins
3db2f05dc3 Properly set address reuse on the oob tcp listen socket.
Remove some temporary code.

This commit was SVN r2040.
2004-08-11 16:02:59 +00:00
Laura Casswell
7732a29d49 add script to run tests
This commit was SVN r2010.
2004-08-10 19:10:29 +00:00
Laura Casswell
46dd816c1f automate test results and add test support routines.
This commit was SVN r2008.
2004-08-10 19:03:42 +00:00
Laura Casswell
0216249ba5 add script for running llm tests
This commit was SVN r2005.
2004-08-10 16:45:51 +00:00
Laura Casswell
89ccdf8145 add script to run tests
This commit was SVN r2004.
2004-08-10 16:45:20 +00:00
Laura Casswell
b3245d5762 automate verification of tests results and add use of test support routines
This commit was SVN r2002.
2004-08-10 15:56:15 +00:00
Laura Casswell
dd1a70c81d add script for running util tests
This commit was SVN r1988.
2004-08-09 22:00:23 +00:00
Laura Casswell
b9e1f38483 add test support calls and reporting
This commit was SVN r1987.
2004-08-09 21:47:27 +00:00
Laura Casswell
e09987b940 added support routines and reporting
This commit was SVN r1986.
2004-08-09 21:44:07 +00:00
Laura Casswell
d3b6afde9c add test support routines and reporting
This commit was SVN r1985.
2004-08-09 21:39:31 +00:00
Laura Casswell
a452bc44fd add common test support functions and reporting
This commit was SVN r1984.
2004-08-09 21:34:57 +00:00
Laura Casswell
a815163347 add run script for include tests
This commit was SVN r1983.
2004-08-09 21:25:57 +00:00
Laura Casswell
ec8b5d1d16 adding common test support routines and reporting
This commit was SVN r1982.
2004-08-09 21:25:05 +00:00
Laura Casswell
33c1952c79 add common test support routines and reporting
This commit was SVN r1981.
2004-08-09 21:24:20 +00:00
Laura Casswell
01bedc62e1 add use of test support functions and reporting
This commit was SVN r1980.
2004-08-09 21:07:24 +00:00
Laura Casswell
6541592111 fix typo in usage message
This commit was SVN r1977.
2004-08-09 19:53:12 +00:00
Laura Casswell
4e45670024 get rid of list_set_size lines
This commit was SVN r1976.
2004-08-09 19:03:51 +00:00
Laura Casswell
6f92bb58ac there is no ompi_list_set_size
This commit was SVN r1975.
2004-08-09 17:42:41 +00:00
Laura Casswell
57e70e4692 add script to run one or all tests
This commit was SVN r1974.
2004-08-09 17:40:50 +00:00
Ralph Castain
b60e7fc95a Update unit test for session directory generator.
This commit was SVN r1958.
2004-08-08 02:20:33 +00:00
Ralph Castain
bdccb58d63 update unit test - prep to renaming.
This commit was SVN r1937.
2004-08-06 21:01:29 +00:00
Ralph Castain
ac7d64af5a Update this unit test - will be moved and further updated shortly.
This commit was SVN r1936.
2004-08-06 20:54:42 +00:00
Tim Prins
c592935f89 More bug fixes. The finalize functions in the oob were not being called,
which lead to some race conditions.
There are still cases where the tcp oob will segfault.

This commit was SVN r1928.
2004-08-06 17:23:37 +00:00
Laura Casswell
850a4987c7 forgot to close files
This commit was SVN r1911.
2004-08-05 19:58:57 +00:00
Laura Casswell
8167336e65 added changes to make more uniform in reporting
This commit was SVN r1910.
2004-08-05 19:52:01 +00:00
Laura Casswell
06686b08d4 added macro to test and report
This commit was SVN r1909.
2004-08-05 19:50:54 +00:00
Tim Prins
097ad1a1bc minor bug fix. close the listen socket in the correct place.
updates to oob test.

This commit was SVN r1908.
2004-08-05 19:37:48 +00:00
Laura Casswell
2fbdeb6f65 Adding calls to general test routines
This commit was SVN r1905.
2004-08-05 19:22:47 +00:00
Brian Barrett
dadb047103 * Add LLM (the rte resource allocator) framework
* Add hostfile component for the LLM (reads hostfiles, returns array of
  node identifiers

NOTES: 
  - This will require the full autogen / configure / make.
  - You now need flex to build Open MPI from Subversion.  The versions
    available on most Linux boxen and OS X is more than new enough.  You
    do *not* need flex to build from a nightly or release tarball.

This commit was SVN r1890.
2004-08-05 14:01:45 +00:00
Tim Prins
457a4b632c Some more changes to the oob:
All the user interface functions are now in mca/oob/base/base.h
Anyone who uses the oob should just include this file.

All component related functions have been moved to mca/oob/oob.h

The reason for this change was to make the user interface more clear.

This commit was SVN r1884.
2004-08-04 23:42:51 +00:00
Laura Casswell
549a7cfba8 change order of includes so will compile
This commit was SVN r1881.
2004-08-04 22:47:25 +00:00
Tim Prins
fe9f18c03b bug fixes:
-properly initialize variables in the oob_tcp_msg struct
-properly close peer sockets in the tcp oob
-fix compare in bucket allocator to use the correct variable
-remove duplicate free in teg

-updated the oob tests
-add more output to tcp oob when there are failures

This commit was SVN r1866.
2004-08-04 14:33:02 +00:00
Jeff Squyres
93762e9aad Fixes to Makefile.am and configure.ac so that "make dist" generates a
proper tarball

This commit was SVN r1865.
2004-08-04 11:23:14 +00:00
Tim Prins
d209e538f1 -fix 2 bugs in the oob
-in some cases failed to call complete function when the message
  was sent.
 -was freeing the wrong iovec in the base recv function
-added a first cut of a oob test

This commit was SVN r1849.
2004-08-03 16:34:59 +00:00
Ralph Castain
772452105b Update unit test for name server replica
This commit was SVN r1848.
2004-08-03 15:58:08 +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
Ralph Castain
ad50f148c2 Unit test for name server replica functionality now complete and functional.
This commit was SVN r1631.
2004-07-12 14:14:47 +00:00
Ralph Castain
7e20e8f430 Update of unit test for name server - submitted to Jeff for review.
This commit was SVN r1628.
2004-07-12 03:21:18 +00:00
Ralph Castain
edd09958e8 Update unit test
This commit was SVN r1616.
2004-07-11 01:18:59 +00:00
Ralph Castain
64fda9a437 Unit test for name server.
This commit was SVN r1606.
2004-07-09 01:58:08 +00:00
Ralph Castain
51efaff00f Move the name server test directory to new location.
This commit was SVN r1583.
2004-07-07 23:11:22 +00:00
Jeff Squyres
735787e12b Remove the set_list_size inline function
This commit was SVN r1490.
2004-06-28 23:52:06 +00:00
Tim Prins
48f51861d3 Adding a new class which is a red black tree
-reviewed by Tim
adding a small test program for the tree

This commit was SVN r1437.
2004-06-22 20:52:18 +00:00
Ralph Castain
a0cfd47135 Add unit tests for name server.
This commit was SVN r1301.
2004-06-16 03:34:19 +00:00
Jeff Squyres
ceec782bcd Minor fixes to make the tree build correctly. Temporaryly removed
test/include from the build because it only has one program that
doesn't compile right now.

This commit was SVN r1297.
2004-06-16 00:34:27 +00:00
David Daniel
c0c70e626a Adding some atomic tests. Work on MacOS X, but not yet included in the build system (I hope).
This commit was SVN r1289.
2004-06-15 22:41:41 +00:00
Tim Woodall
d1706ed2d0 more cleanup of broken svn commit
This commit was SVN r1280.
2004-06-15 19:57:18 +00:00
Jeff Squyres
b1cb8b8cfa Fixes for "make dist"
This commit was SVN r1278.
2004-06-15 19:39:21 +00:00
Tim Prins
44d2bd5259 removing the memory allocator tests as we are
moving things around and these will frequently 
break

This commit was SVN r1267.
2004-06-15 17:15:34 +00:00
Tim Prins
8f7b128941 first checkin of the memory allocation framework. It should work fine
except the align and realloc functions are not yet allocated.

This commit was SVN r1251.
2004-06-14 21:05:53 +00:00
Ralph Castain
4c28cb8b3d Okay, let's see if the system gets rid of the old registry files this time. Also added new location to configure.ac, and picked up a change to the sys_info header.
This commit was SVN r1239.
2004-06-12 10:56:32 +00:00
Ralph Castain
3ba6a024c9 Update the unit test for sys_info function
This commit was SVN r1224.
2004-06-11 00:36:48 +00:00
Tim Woodall
8e30307ada removed list type
This commit was SVN r1212.
2004-06-09 22:08:59 +00:00
George Bosilca
3c866dde73 C require that the definitions of variables have to be done prior to any instruction block.
This commit was SVN r1208.
2004-06-09 04:31:38 +00:00
David Daniel
c2e2de7981 Removing broken reference to registry test
This commit was SVN r1198.
2004-06-07 21:00:42 +00:00
Tim Woodall
f851e0032b renamed
This commit was SVN r1196.
2004-06-07 19:14:26 +00:00
David Daniel
1b04577727 renaming directories
This commit was SVN r1193.
2004-06-07 15:45:09 +00:00
David Daniel
2f96ba71fe renaming files
This commit was SVN r1192.
2004-06-07 15:40:19 +00:00
David Daniel
563ac2a338 First pass of lam -> ompi conversion
This commit was SVN r1191.
2004-06-07 15:33:53 +00:00
Tim Woodall
9361dbf767 - changed PTL ptl_add_proc/ptl_del_proc interface to accept an array of procs for more scalable startup
- resolved several threaded race conditions
- stubs for shared memory ptl

This commit was SVN r1186.
2004-06-03 22:13:01 +00:00
Ralph Castain
3669c92549 Update of the os_session_dir_init unit test to reflect change in number of parameters passed to function.
This commit was SVN r1164.
2004-05-27 16:20:20 +00:00
Tim Woodall
7093a41292 resolved link errors for single threaded case
This commit was SVN r1163.
2004-05-26 21:54:11 +00:00
Ralph Castain
82558c56d6 Add unit tests for ompi_session_dir_init routine.
This commit was SVN r1162.
2004-05-26 19:16:33 +00:00
Ralph Castain
5ed4721bb2 Add unit tests for os_create_dirpath and sys_info.
This commit was SVN r1157.
2004-05-26 02:20:05 +00:00
Ralph Castain
bc8330fb7a Unit test for src/util/os_path.c
This commit was SVN r1156.
2004-05-25 21:38:16 +00:00
Tim Woodall
42a05e9a74 updated to reflect directory reorg - test directory tree should match src
This commit was SVN r1154.
2004-05-24 21:45:00 +00:00
Vishal Sahay
20469b4248 Testcase for bitmap. This dir struct is not correct now, and cant be build. So just commiting the te
st as it is (although it has been tested outside of this scope...and it works fine)

This commit was SVN r1021.
2004-04-11 22:15:45 +00:00
Tim Woodall
3992c9582a added support for irecv,isend,wait
This commit was SVN r863.
2004-03-16 21:56:19 +00:00
Jeff Squyres
5a3e05dded Convert .cvsignore to svn:ignore
This commit was SVN r846.
2004-03-15 16:02:12 +00:00
Tim Woodall
7b590f00b4 first cut at blocking send/recv (via tcp)
This commit was SVN r842.
2004-03-11 22:02:01 +00:00
Tim Woodall
e5b510128f fixed dependency
This commit was SVN r820.
2004-03-03 17:06:49 +00:00
Tim Woodall
4f79b5d7ff fixed dependencies
This commit was SVN r819.
2004-03-03 17:05:51 +00:00
Tim Woodall
8ac7db9c55 added link dependency
This commit was SVN r818.
2004-03-03 17:04:30 +00:00
Tim Woodall
1f915b0b4a - made lam_mutex_t a lam_object
- implemented module exchange
- debugging p2p init
- added condition variables
- added threading test code

This commit was SVN r817.
2004-03-03 16:44:41 +00:00
Jeff Squyres
063db13374 Minor mod
This commit was SVN r804.
2004-02-14 06:03:05 +00:00
Jeff Squyres
f8f59bd309 *** empty log message ***
This commit was SVN r767.
2004-02-13 05:39:50 +00:00
Jeff Squyres
f54128c68c Add another executable
This commit was SVN r757.
2004-02-13 04:00:00 +00:00
Jeff Squyres
97bcdd02ee Add in lam_object.lo
This commit was SVN r754.
2004-02-13 03:38:02 +00:00
Tim Woodall
63ea2f9ecb renamed to test_verify_str
This commit was SVN r732.
2004-02-11 21:12:00 +00:00
Tim Woodall
c266f0d556 renamed existing tests to be consistent w/ type names they test
added lam_value_array test

This commit was SVN r728.
2004-02-11 14:45:35 +00:00
Tim Woodall
633f525421 added hash_table test
This commit was SVN r716.
2004-02-10 22:19:03 +00:00
Tim Woodall
61e9d9bcdf - renamed list.h to lam_list.h
- renamed object.h to lam_object.h
- updated hash_table test

This commit was SVN r715.
2004-02-10 22:15:55 +00:00
David Daniel
6ea89746de Making test() static to quieten compiler
This commit was SVN r712.
2004-02-10 22:07:47 +00:00
Rich Graham
190b9b13b5 Add test for lam_pointer_array.c
This commit was SVN r706.
2004-02-10 21:22:43 +00:00
Jeff Squyres
d4c0fd9e25 Make the Makefile.am reflect the real filenames
This commit was SVN r695.
2004-02-10 19:40:05 +00:00
Tim Woodall
b197c430db fixed list constructor
This commit was SVN r690.
2004-02-10 19:11:03 +00:00
David Daniel
00e50911b0 A large commit:
Changing the object.h model to conform more to people's (C++-biased)
expectations.  See the comment at the top of src/lam/lfc/object.h for
full details.

Also a couple of tweaks to the datatype directory (but nothing working
yet).

This commit was SVN r674.
2004-02-10 14:04:27 +00:00
Jeff Squyres
413d87586d Convert from LAM_MALLOC / LAM_FREE to regular malloc / free. When
memory debugging is enabled, there are magic defines to change from
malloc / free to lam_malloc / free.

This commit was SVN r673.
2004-02-10 00:09:36 +00:00
Brian Barrett
4c9d393a0e * Fix a number of environment variable naming issues in the cofs code. This
really needs to use the param registry code
* make mpirun use -f -n to start processes - seems to make ssh happier
* update oob test to go through the mca layer

This commit was SVN r663.
2004-02-08 02:09:17 +00:00
Brian Barrett
446838f5db * implement the most basic MPI program one can implement
This commit was SVN r658.
2004-02-06 07:19:21 +00:00
Brian Barrett
a070d9af63 * Update to make this work again with the changes in the mca changes
This commit was SVN r657.
2004-02-06 07:17:13 +00:00
Rich Graham
11fe4769aa add one more test - done for now.
This commit was SVN r650.
2004-02-05 00:05:18 +00:00
Rich Graham
d8c4b80918 list.h - remove prototype for unimplemented and unused function.
list.c - fix bug in lam_list_insert - loop had wrong ending parameter
list_test.c - add more tests

This commit was SVN r649.
2004-02-04 23:54:22 +00:00
Rob Awles
f23432befd Improved hash table test program.
This commit was SVN r553.
2004-01-27 20:12:09 +00:00
Rob Awles
14588b8390 Added code to increment counters accordingly in test_verify. Added test_verify_int.
This commit was SVN r552.
2004-01-27 20:11:48 +00:00
Rob Awles
eb762c9f2f Adding initial test program of hash table.
This commit was SVN r550.
2004-01-27 17:20:23 +00:00
Rich Graham
d5ae55fdcc change the pointers in the lam item to be volatile.
Add some to the list unit test.

This commit was SVN r547.
2004-01-26 20:32:19 +00:00
Rich Graham
655084cc44 minor updates.
This commit was SVN r422.
2004-01-15 17:46:52 +00:00
Jeff Squyres
7b4819931f Update .cvsignore
This commit was SVN r404.
2004-01-15 04:32:24 +00:00
Jeff Squyres
1b541e3393 Add missing .cvsignore files
This commit was SVN r401.
2004-01-15 03:49:55 +00:00
Jeff Squyres
eac0235eb7 Silence compiler warning
This commit was SVN r395.
2004-01-15 03:34:24 +00:00
Jeff Squyres
b9d38d4f3f Add missing Makefile.am
This commit was SVN r394.
2004-01-15 03:28:19 +00:00
Rich Graham
99d52894f6 changing support_finalize to return status.
Start to put in a unit test for the list functionality.

This commit was SVN r390.
2004-01-15 00:59:26 +00:00
Rich Graham
1efc0f4131 finish first set of functions for basic single process unit test
error tracking and reporting.

This commit was SVN r387.
2004-01-15 00:33:59 +00:00
Jeff Squyres
b97528437c Add .cvsignore
This commit was SVN r385.
2004-01-15 00:18:40 +00:00
Rich Graham
29fdbb6a7c start to add testing support library.
This commit was SVN r384.
2004-01-15 00:07:17 +00:00
Brian Barrett
d8bbd51773 * added really basic test case for the cofs pcm module
* fixed missing variables in the cofs pcm module

This commit was SVN r368.
2004-01-14 09:11:34 +00:00
Brian Barrett
875c7241fc * Make test cases not install themselves (what was I thinking?)
This commit was SVN r366.
2004-01-14 08:37:49 +00:00
Jeff Squyres
b5c5d27090 Fix minor typo resulting from type name changing
This commit was SVN r362.
2004-01-14 07:02:26 +00:00
Jeff Squyres
17bbd49fd0 Add util directory for tests
This commit was SVN r356.
2004-01-14 06:39:26 +00:00
Jeff Squyres
c21aa53812 Oops -- missed some argeed-upon style things
This commit was SVN r320.
2004-01-13 02:57:17 +00:00
Jeff Squyres
88ac536659 argv unit test
This commit was SVN r319.
2004-01-13 02:55:26 +00:00
Brian Barrett
41bf5c59ab * change from any-source style messaging to source-specified receives.
* Update cofs module to match

This commit was SVN r288.
2004-01-12 01:57:06 +00:00
Brian Barrett
2c33a0be9d * Moved cofs oob module to use its own configure and all that jaz
This commit was SVN r275.
2004-01-11 22:52:59 +00:00
Brian Barrett
34048ae22d * fix .cvsignore file
This commit was SVN r267.
2004-01-11 21:23:09 +00:00
Brian Barrett
8d093c1886 * Fix argument swap in the test code
* Fix match code and read code in the cofs oob module

This commit was SVN r266.
2004-01-11 21:22:23 +00:00
Brian Barrett
527ee858c4 * remove static inline in atomic.h so that the compiler stops complaining
about undefined static functions.  Someone needs to look at this and
  fix it.
* Fixed missing header files in oob_cofs test

This commit was SVN r247.
2004-01-11 00:24:22 +00:00
Brian Barrett
4e589b6775 * Some more makesfile stuff for unit test
This commit was SVN r236.
2004-01-11 00:04:31 +00:00
Brian Barrett
812b9e5897 * add basic unit test shell
This commit was SVN r235.
2004-01-11 00:02:44 +00:00
Brian Barrett
6f7811f9d5 * Fix a number of compiler errors that crop up with undefined function
errors
* Add some basic unit test gorp for COFS OOB module

This commit was SVN r234.
2004-01-11 00:02:06 +00:00
Jeff Squyres
9841060cba - Remove header, replace with $HEADER$ (to be filled in later)
- Remove $Id$

This commit was SVN r80.
2004-01-07 15:07:14 +00:00
Jeff Squyres
f14226057a Add/update .cvsignore files
This commit was SVN r17.
2003-12-28 15:38:13 +00:00
Jeff Squyres
cadf5e6fc7 First commit
This commit was SVN r3.
2003-11-22 16:45:44 +00:00
Jeff Squyres
350564b9f3 First commit
This commit was SVN r1.
2003-11-22 16:36:58 +00:00