1
1
openmpi/ompi/mca
Jeff Squyres fb2e543a57 Refs trac:3275.
We ran into a case where the OMPI SVN trunk grew a new acceptable MCA
parameter value, but this new value was not accepted on the v1.6
branch (hwloc_base_mem_bind_failure_action -- on the trunk it accepts
the value "silent", but on the older v1.6 branch, it doesn't).  If you
set "hwloc_base_mem_bind_failure_action=silent" in the default MCA
params file and then accidentally ran with the v1.6 branch, every OMPI
executable (including ompi_info) just failed because hwloc_base_open()
would say "hey, 'silent' is not a valid value for
hwloc_base_mem_bind_failure_action!".  Kaboom.

The only problem is that it didn't give you any indication of where
this value was being set.  Quite maddening, from a user perspective.

So we changed the ompi_info handles this case.  If any framework open
function return OMPI_ERR_BAD_PARAM (either because its base MCA params
got a bad value or because one of its component register/open
functions return OMPI_ERR_BAD_PARAM), ompi_info will stop, print out
a warning that it received and error, and then dump out the parameters
that it has received so far in the framework that had a problem.

At a minimum, this will show the user the MCA param that had an error
(it's usually the last one), and ''where it was set from'' (so that
they can go fix it).  

We updated ompi_info to check for O???_ERR_BAD_PARAM from each from
the framework opens.  Also updated the doxygen docs in mca.h for this
O???_BAD_PARAM behavior.  And we noticed that mca.h had MCA_SUCCESS
and MCA_ERR_??? codes.  Why?  I think we used them in exactly one
place in the code base (mca_base_components_open.c).  So we deleted
those and just used the normal OPAL_* codes instead.

While we were doing this, we also cleaned up a little memory
management during ompi_info/orte-info/opal-info finalization.
Valgrind still reports a truckload of memory still in use at ompi_info
termination, but they mostly look to be components not freeing
memory/resources properly (and outside the scope of this fix).

This commit was SVN r27306.

The following Trac tickets were found above:
  Ticket 3275 --> https://svn.open-mpi.org/trac/ompi/ticket/3275
2012-09-11 20:47:24 +00:00
..
allocator Fix broken basic allocator. Not sure how this ever worked. 2011-06-03 14:43:54 +00:00
bcol Per some discussions between LANL, Cisco, ORNAL, and Mellanox, move 2012-09-01 01:42:37 +00:00
bml Backout the ORCA commit. :( 2012-06-27 01:28:28 +00:00
btl Refs trac:3275. 2012-09-11 20:47:24 +00:00
coll Fixing ML COLL compilation issues on some SUN platforms. For more detail see following mail thread: 2012-08-29 14:10:42 +00:00
common Oops; the error paths were not correct on the initial commit. Fixed. 2012-09-04 15:48:44 +00:00
crcp Replace the pattern while(flag) { opal_progress() }; in the C/R code 2012-07-13 23:31:56 +00:00
dpm Sigh - get the end of the loop at the right place 2012-08-31 15:54:11 +00:00
fbtl cleaning up the usage of CFLAGS vs. CPPFLAGS. Thanks Jeff for helping with 2012-06-25 20:32:58 +00:00
fcoll Initialize the iov_count, this crashes static write/read in certain platforms while decoding datatype 2012-09-08 00:40:21 +00:00
fs Removing .ompi_ignore for the lustre component. 2012-09-05 22:20:18 +00:00
io Modifying the file view generation to remove the merging of offset-length pair. 2012-09-05 21:00:47 +00:00
mpool Getting out of bed this morning was a bad idea... Reverting the sm update once more because it breaks direct launch. Will address this issue and commit the update once it has all been tested. Sorry everyone! 2012-08-10 22:20:38 +00:00
mtl THe Portals 4 reference implementation will sometimes return a NI_FLOWCTL for both a 2012-09-05 19:36:19 +00:00
op Each level (OPAL/ORTE/OMPI) should only return it's own constants, 2011-10-04 14:50:31 +00:00
osc Indentation. 2012-08-07 12:46:47 +00:00
pml silence warning 2012-08-13 17:43:36 +00:00
pubsub Backout the ORCA commit. :( 2012-06-27 01:28:28 +00:00
rcache Sorry for mid-day commit, but I had promised on the call to do this upon my return. 2012-04-06 14:23:13 +00:00
sbgp Per some discussions between LANL, Cisco, ORNAL, and Mellanox, move 2012-09-01 01:42:37 +00:00
sharedfp Include the new .windows files into the tarball. 2012-08-23 12:50:51 +00:00
topo Fixes trac:3294: space for the periods has already been allocated by 2012-09-06 14:16:29 +00:00
vprotocol Backout the ORCA commit. :( 2012-06-27 01:28:28 +00:00