2008-02-28 01:57:57 +00:00
|
|
|
/*
|
2010-03-12 23:57:50 +00:00
|
|
|
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
|
2008-02-28 01:57:57 +00:00
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2011-06-23 20:38:02 +00:00
|
|
|
* Copyright (c) 2004-2011 The University of Tennessee and The University
|
2008-02-28 01:57:57 +00:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2012-08-23 21:28:05 +00:00
|
|
|
* Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
|
2013-02-28 01:35:55 +00:00
|
|
|
* Copyright (c) 2011-2013 Los Alamos National Security, LLC.
|
2012-04-06 14:23:13 +00:00
|
|
|
* All rights reserved.
|
2008-02-28 01:57:57 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "orte_config.h"
|
|
|
|
#include "orte/types.h"
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
#include "opal/util/argv.h"
|
At long last, the fabled revision to the affinity system has arrived. A more detailed explanation of how this all works will be presented here:
https://svn.open-mpi.org/trac/ompi/wiki/ProcessPlacement
The wiki page is incomplete at the moment, but I hope to complete it over the next few days. I will provide updates on the devel list. As the wiki page states, the default and most commonly used options remain unchanged (except as noted below). New, esoteric and complex options have been added, but unless you are a true masochist, you are unlikely to use many of them beyond perhaps an initial curiosity-motivated experimentation.
In a nutshell, this commit revamps the map/rank/bind procedure to take into account topology info on the compute nodes. I have, for the most part, preserved the default behaviors, with three notable exceptions:
1. I have at long last bowed my head in submission to the system admin's of managed clusters. For years, they have complained about our default of allowing users to oversubscribe nodes - i.e., to run more processes on a node than allocated slots. Accordingly, I have modified the default behavior: if you are running off of hostfile/dash-host allocated nodes, then the default is to allow oversubscription. If you are running off of RM-allocated nodes, then the default is to NOT allow oversubscription. Flags to override these behaviors are provided, so this only affects the default behavior.
2. both cpus/rank and stride have been removed. The latter was demanded by those who didn't understand the purpose behind it - and I agreed as the users who requested it are no longer using it. The former was removed temporarily pending implementation.
3. vm launch is now the sole method for starting OMPI. It was just too darned hard to maintain multiple launch procedures - maybe someday, provided someone can demonstrate a reason to do so.
As Jeff stated, it is impossible to fully test a change of this size. I have tested it on Linux and Mac, covering all the default and simple options, singletons, and comm_spawn. That said, I'm sure others will find problems, so I'll be watching MTT results until this stabilizes.
This commit was SVN r25476.
2011-11-15 03:40:11 +00:00
|
|
|
#include "opal/dss/dss.h"
|
|
|
|
#include "opal/dss/dss_internal.h"
|
|
|
|
#include "opal/mca/hwloc/base/base.h"
|
2009-07-13 14:49:20 +00:00
|
|
|
#include "opal/class/opal_pointer_array.h"
|
2008-02-28 01:57:57 +00:00
|
|
|
|
|
|
|
#include "orte/mca/errmgr/errmgr.h"
|
|
|
|
#include "opal/dss/dss.h"
|
2008-06-19 18:46:25 +00:00
|
|
|
#include "opal/dss/dss_internal.h"
|
2008-02-28 01:57:57 +00:00
|
|
|
#include "orte/runtime/data_type_support/orte_dt_support.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ORTE_STD_CNTR
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_std_cntr(opal_buffer_t *buffer, const void *src,
|
|
|
|
int32_t num_vals, opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
/* Turn around and pack the real type */
|
|
|
|
if (ORTE_SUCCESS != (
|
2008-06-19 18:46:25 +00:00
|
|
|
ret = opal_dss_pack_buffer(buffer, src, num_vals, ORTE_STD_CNTR_T))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* NAME
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_name(opal_buffer_t *buffer, const void *src,
|
|
|
|
int32_t num_vals, opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
int32_t i;
|
|
|
|
orte_process_name_t* proc;
|
|
|
|
orte_jobid_t *jobid;
|
|
|
|
orte_vpid_t *vpid;
|
|
|
|
|
|
|
|
/* collect all the jobids in a contiguous array */
|
|
|
|
jobid = (orte_jobid_t*)malloc(num_vals * sizeof(orte_jobid_t));
|
|
|
|
if (NULL == jobid) {
|
|
|
|
ORTE_ERROR_LOG(ORTE_ERR_OUT_OF_RESOURCE);
|
|
|
|
return ORTE_ERR_OUT_OF_RESOURCE;
|
|
|
|
}
|
|
|
|
proc = (orte_process_name_t*)src;
|
|
|
|
for (i=0; i < num_vals; i++) {
|
|
|
|
jobid[i] = proc->jobid;
|
|
|
|
proc++;
|
|
|
|
}
|
|
|
|
/* now pack them in one shot */
|
|
|
|
if (ORTE_SUCCESS != (rc =
|
|
|
|
orte_dt_pack_jobid(buffer, jobid, num_vals, ORTE_JOBID))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
free(jobid);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
free(jobid);
|
|
|
|
|
|
|
|
/* collect all the vpids in a contiguous array */
|
|
|
|
vpid = (orte_vpid_t*)malloc(num_vals * sizeof(orte_vpid_t));
|
|
|
|
if (NULL == vpid) {
|
|
|
|
ORTE_ERROR_LOG(ORTE_ERR_OUT_OF_RESOURCE);
|
|
|
|
return ORTE_ERR_OUT_OF_RESOURCE;
|
|
|
|
}
|
|
|
|
proc = (orte_process_name_t*)src;
|
|
|
|
for (i=0; i < num_vals; i++) {
|
|
|
|
vpid[i] = proc->vpid;
|
|
|
|
proc++;
|
|
|
|
}
|
|
|
|
/* now pack them in one shot */
|
|
|
|
if (ORTE_SUCCESS != (rc =
|
|
|
|
orte_dt_pack_vpid(buffer, vpid, num_vals, ORTE_VPID))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
free(vpid);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
free(vpid);
|
2011-06-23 20:38:02 +00:00
|
|
|
|
2008-02-28 01:57:57 +00:00
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* JOBID
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_jobid(opal_buffer_t *buffer, const void *src,
|
|
|
|
int32_t num_vals, opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
/* Turn around and pack the real type */
|
|
|
|
if (ORTE_SUCCESS != (
|
2008-06-19 18:46:25 +00:00
|
|
|
ret = opal_dss_pack_buffer(buffer, src, num_vals, ORTE_JOBID_T))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* VPID
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_vpid(opal_buffer_t *buffer, const void *src,
|
|
|
|
int32_t num_vals, opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
/* Turn around and pack the real type */
|
|
|
|
if (ORTE_SUCCESS != (
|
2008-06-19 18:46:25 +00:00
|
|
|
ret = opal_dss_pack_buffer(buffer, src, num_vals, ORTE_VPID_T))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* JOB
|
|
|
|
* NOTE: We do not pack all of the job object's fields as many of them have no
|
|
|
|
* value in sending them to another location. The only purpose in packing and
|
|
|
|
* sending a job object is to communicate the data required to dynamically
|
|
|
|
* spawn another job - so we only pack that limited set of required data
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_job(opal_buffer_t *buffer, const void *src,
|
|
|
|
int32_t num_vals, opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int rc;
|
2010-07-13 21:23:14 +00:00
|
|
|
int32_t i, j;
|
2008-02-28 01:57:57 +00:00
|
|
|
orte_job_t **jobs;
|
2009-07-13 14:49:20 +00:00
|
|
|
orte_app_context_t *app;
|
|
|
|
|
2008-02-28 01:57:57 +00:00
|
|
|
/* array of pointers to orte_job_t objects - need to pack the objects a set of fields at a time */
|
|
|
|
jobs = (orte_job_t**) src;
|
|
|
|
|
|
|
|
for (i=0; i < num_vals; i++) {
|
|
|
|
/* pack the jobid */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(jobs[i]->jobid)), 1, ORTE_JOBID))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the number of apps */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2010-02-27 17:37:34 +00:00
|
|
|
(void*)(&(jobs[i]->num_apps)), 1, ORTE_APP_IDX))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* if there are apps, pack the app_contexts */
|
|
|
|
if (0 < jobs[i]->num_apps) {
|
2009-07-13 14:49:20 +00:00
|
|
|
for (j=0; j < jobs[i]->apps->size; j++) {
|
|
|
|
if (NULL == (app = (orte_app_context_t*)opal_pointer_array_get_item(jobs[i]->apps, j))) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, (void*)&app, 1, ORTE_APP_CONTEXT))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-03-06 21:56:00 +00:00
|
|
|
/* pack the control flags */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
Roll in the revamped IOF subsystem. Per the devel mailing list email, this is a complete rewrite of the iof framework designed to simplify the code for maintainability, and to support features we had planned to do, but were too difficult to implement in the old code. Specifically, the new code:
1. completely and cleanly separates responsibilities between the HNP, orted, and tool components.
2. removes all wireup messaging during launch and shutdown.
3. maintains flow control for stdin to avoid large-scale consumption of memory by orteds when large input files are forwarded. This is done using an xon/xoff protocol.
4. enables specification of stdin recipients on the mpirun cmd line. Allowed options include rank, "all", or "none". Default is rank 0.
5. creates a new MPI_Info key "ompi_stdin_target" that supports the above options for child jobs. Default is "none".
6. adds a new tool "orte-iof" that can connect to a running mpirun and display the output. Cmd line options allow selection of any combination of stdout, stderr, and stddiag. Default is stdout.
7. adds a new mpirun and orte-iof cmd line option "tag-output" that will tag each line of output with process name and stream ident. For example, "[1,0]<stdout>this is output"
This is not intended for the 1.3 release as it is a major change requiring considerable soak time.
This commit was SVN r19767.
2008-10-18 00:00:49 +00:00
|
|
|
(void*)(&(jobs[i]->controls)), 1, ORTE_JOB_CONTROL))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the stdin target */
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
|
|
|
(void*)(&(jobs[i]->stdin_target)), 1, ORTE_VPID))) {
|
2008-03-06 21:56:00 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
2008-02-28 01:57:57 +00:00
|
|
|
|
|
|
|
/* pack the total slots allocated to the job */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(jobs[i]->total_slots_alloc)), 1, ORTE_STD_CNTR))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* if the map is NULL, then we cannot pack it as there is
|
|
|
|
* nothing to pack. However, we have to flag whether or not
|
|
|
|
* the map is included so the unpacking routine can know
|
|
|
|
* what to do
|
|
|
|
*/
|
|
|
|
if (NULL == jobs[i]->map) {
|
|
|
|
/* pack a zero value */
|
|
|
|
j=0;
|
|
|
|
} else {
|
|
|
|
/* pack a one to indicate a map is there */
|
|
|
|
}
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)&j, 1, ORTE_STD_CNTR))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the map - this will only pack the fields that control
|
|
|
|
* HOW a job is to be mapped. We do -not- pack the mapped procs
|
|
|
|
* or nodes as this info does not need to be transmitted
|
|
|
|
*/
|
|
|
|
if (NULL != jobs[i]->map) {
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(jobs[i]->map)), 1, ORTE_JOB_MAP))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* do not pack the bookmark or oversubscribe_override flags */
|
|
|
|
|
|
|
|
/* pack the job state */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(jobs[i]->state)), 1, ORTE_JOB_STATE))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the number launched */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(jobs[i]->num_launched)), 1, ORTE_VPID))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the number reported */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(jobs[i]->num_reported)), 1, ORTE_VPID))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the number terminated */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(jobs[i]->num_terminated)), 1, ORTE_VPID))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the abort flag */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(jobs[i]->abort)), 1, OPAL_BOOL))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2011-02-14 20:49:12 +00:00
|
|
|
/* pack the recovery policy defined flag */
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
|
|
|
(void*)(&(jobs[i]->recovery_defined)), 1, OPAL_BOOL))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2010-11-10 21:26:28 +00:00
|
|
|
/* pack the recovery flag */
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
|
|
|
(void*)(&(jobs[i]->enable_recovery)), 1, OPAL_BOOL))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2010-03-12 23:57:50 +00:00
|
|
|
#if OPAL_ENABLE_FT_CR == 1
|
2008-02-28 01:57:57 +00:00
|
|
|
/* pack the ckpt state */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(jobs[i]->ckpt_state)), 1, OPAL_SIZE))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the ckpt snapshot ref */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(jobs[i]->ckpt_snapshot_ref)), 1, OPAL_STRING))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the ckpt snapshot loc */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(jobs[i]->ckpt_snapshot_loc)), 1, OPAL_STRING))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* NODE
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_node(opal_buffer_t *buffer, const void *src,
|
|
|
|
int32_t num_vals, opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
int32_t i;
|
|
|
|
orte_node_t **nodes;
|
|
|
|
|
|
|
|
/* array of pointers to orte_node_t objects - need to pack the objects a set of fields at a time */
|
|
|
|
nodes = (orte_node_t**) src;
|
|
|
|
|
|
|
|
for (i=0; i < num_vals; i++) {
|
|
|
|
/* do not pack the index - it is meaningless on the other end */
|
|
|
|
|
|
|
|
/* pack the node name */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(nodes[i]->name)), 1, OPAL_STRING))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2008-07-25 13:35:12 +00:00
|
|
|
/* do not pack the daemon name or launch id */
|
2008-02-28 01:57:57 +00:00
|
|
|
|
|
|
|
/* pack the number of procs on the node */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(nodes[i]->num_procs)), 1, ORTE_VPID))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* do not pack the proc info */
|
|
|
|
|
|
|
|
/* pack whether we are oversubscribed or not */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(nodes[i]->oversubscribed)), 1, OPAL_BOOL))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the state */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(nodes[i]->state)), 1, ORTE_NODE_STATE))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the number of slots */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(nodes[i]->slots)), 1, ORTE_STD_CNTR))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the number of slots in use */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(nodes[i]->slots_inuse)), 1, ORTE_STD_CNTR))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the number of slots allocated */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-09-05 01:30:39 +00:00
|
|
|
(void*)(&(nodes[i]->slots)), 1, ORTE_STD_CNTR))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the max number of slots */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(nodes[i]->slots_max)), 1, ORTE_STD_CNTR))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* do not pack the username */
|
|
|
|
}
|
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* PROC
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_proc(opal_buffer_t *buffer, const void *src,
|
|
|
|
int32_t num_vals, opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
int32_t i;
|
|
|
|
orte_proc_t **procs;
|
|
|
|
|
|
|
|
/* array of pointers to orte_proc_t objects - need to pack the objects a set of fields at a time */
|
|
|
|
procs = (orte_proc_t**) src;
|
|
|
|
|
|
|
|
for (i=0; i < num_vals; i++) {
|
|
|
|
/* pack the name */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(procs[i]->name)), 1, ORTE_NAME))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the local rank */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-09-25 13:39:08 +00:00
|
|
|
(void*)(&(procs[i]->local_rank)), 1, ORTE_LOCAL_RANK))) {
|
2008-04-30 19:49:53 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the node rank */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-09-25 13:39:08 +00:00
|
|
|
(void*)(&(procs[i]->node_rank)), 1, ORTE_NODE_RANK))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
At long last, the fabled revision to the affinity system has arrived. A more detailed explanation of how this all works will be presented here:
https://svn.open-mpi.org/trac/ompi/wiki/ProcessPlacement
The wiki page is incomplete at the moment, but I hope to complete it over the next few days. I will provide updates on the devel list. As the wiki page states, the default and most commonly used options remain unchanged (except as noted below). New, esoteric and complex options have been added, but unless you are a true masochist, you are unlikely to use many of them beyond perhaps an initial curiosity-motivated experimentation.
In a nutshell, this commit revamps the map/rank/bind procedure to take into account topology info on the compute nodes. I have, for the most part, preserved the default behaviors, with three notable exceptions:
1. I have at long last bowed my head in submission to the system admin's of managed clusters. For years, they have complained about our default of allowing users to oversubscribe nodes - i.e., to run more processes on a node than allocated slots. Accordingly, I have modified the default behavior: if you are running off of hostfile/dash-host allocated nodes, then the default is to allow oversubscription. If you are running off of RM-allocated nodes, then the default is to NOT allow oversubscription. Flags to override these behaviors are provided, so this only affects the default behavior.
2. both cpus/rank and stride have been removed. The latter was demanded by those who didn't understand the purpose behind it - and I agreed as the users who requested it are no longer using it. The former was removed temporarily pending implementation.
3. vm launch is now the sole method for starting OMPI. It was just too darned hard to maintain multiple launch procedures - maybe someday, provided someone can demonstrate a reason to do so.
As Jeff stated, it is impossible to fully test a change of this size. I have tested it on Linux and Mac, covering all the default and simple options, singletons, and comm_spawn. That said, I'm sure others will find problems, so I'll be watching MTT results until this stabilizes.
This commit was SVN r25476.
2011-11-15 03:40:11 +00:00
|
|
|
#if OPAL_HAVE_HWLOC
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
|
|
|
(void*)(&procs[i]->cpu_bitmap), 1, OPAL_STRING))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2008-02-28 01:57:57 +00:00
|
|
|
/* pack the state */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(procs[i]->state)), 1, ORTE_PROC_STATE))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the app context index */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(procs[i]->app_idx)), 1, ORTE_STD_CNTR))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2010-01-07 01:19:44 +00:00
|
|
|
/* pack the number of restarts */
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
|
|
|
(void*)&(procs[i]->restarts), 1, OPAL_INT32))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
2010-04-26 22:15:57 +00:00
|
|
|
}
|
|
|
|
|
2010-03-12 23:57:50 +00:00
|
|
|
#if OPAL_ENABLE_FT_CR == 1
|
2008-02-28 01:57:57 +00:00
|
|
|
/* pack the ckpt state */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(procs[i]->ckpt_state)), 1, OPAL_SIZE))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the ckpt snapshot ref */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(procs[i]->ckpt_snapshot_ref)), 1, OPAL_STRING))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the ckpt snapshot loc */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2008-02-28 01:57:57 +00:00
|
|
|
(void*)(&(procs[i]->ckpt_snapshot_loc)), 1, OPAL_STRING))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* APP CONTEXT
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_app_context(opal_buffer_t *buffer, const void *src,
|
2012-08-24 02:28:29 +00:00
|
|
|
int32_t num_vals, opal_data_type_t type)
|
2008-02-28 01:57:57 +00:00
|
|
|
{
|
|
|
|
int rc;
|
2012-08-24 02:28:29 +00:00
|
|
|
int8_t user_specified;
|
2008-02-28 01:57:57 +00:00
|
|
|
int32_t i, count;
|
|
|
|
orte_app_context_t **app_context;
|
|
|
|
|
|
|
|
/* array of pointers to orte_app_context objects - need to pack the objects a set of fields at a time */
|
|
|
|
app_context = (orte_app_context_t**) src;
|
|
|
|
|
|
|
|
for (i=0; i < num_vals; i++) {
|
|
|
|
/* pack the application index (for multiapp jobs) */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&(app_context[i]->idx)), 1, ORTE_STD_CNTR))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the application name */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&(app_context[i]->app)), 1, OPAL_STRING))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the number of processes */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&(app_context[i]->num_procs)), 1, ORTE_STD_CNTR))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2012-08-12 01:28:23 +00:00
|
|
|
/* pack the first rank for this app */
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&(app_context[i]->first_rank)), 1, ORTE_VPID))) {
|
2012-08-12 01:28:23 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2008-02-28 01:57:57 +00:00
|
|
|
/* pack the number of entries in the argv array */
|
|
|
|
count = opal_argv_count(app_context[i]->argv);
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, (void*)(&count), 1, ORTE_STD_CNTR))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* if there are entries, pack the argv entries */
|
|
|
|
if (0 < count) {
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(app_context[i]->argv), count, OPAL_STRING))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the number of entries in the enviro array */
|
|
|
|
count = opal_argv_count(app_context[i]->env);
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, (void*)(&count), 1, ORTE_STD_CNTR))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* if there are entries, pack the enviro entries */
|
|
|
|
if (0 < count) {
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(app_context[i]->env), count, OPAL_STRING))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the cwd */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&(app_context[i]->cwd)), 1, OPAL_STRING))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the user specified cwd flag */
|
|
|
|
if (app_context[i]->user_specified_cwd) {
|
|
|
|
user_specified = 1;
|
|
|
|
} else {
|
2012-08-23 21:28:05 +00:00
|
|
|
user_specified = 0;
|
|
|
|
}
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&user_specified), 1, OPAL_INT8))) {
|
2012-08-23 21:28:05 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the use-session-dir cwd flag */
|
|
|
|
if (app_context[i]->set_cwd_to_session_dir) {
|
|
|
|
user_specified = 1;
|
|
|
|
} else {
|
2008-02-28 01:57:57 +00:00
|
|
|
user_specified = 0;
|
|
|
|
}
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&user_specified), 1, OPAL_INT8))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the hostfile name */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&(app_context[i]->hostfile)), 1, OPAL_STRING))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the add_hostfile name */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&(app_context[i]->add_hostfile)), 1, OPAL_STRING))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2009-07-14 14:34:11 +00:00
|
|
|
/* pack the add host argv array */
|
|
|
|
count = opal_argv_count(app_context[i]->add_host);
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, (void*)(&count), 1, ORTE_STD_CNTR))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* if there are entries, pack the argv entries */
|
|
|
|
if (0 < count) {
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(app_context[i]->add_host), count, OPAL_STRING))) {
|
2009-07-14 14:34:11 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-03-05 22:12:27 +00:00
|
|
|
/* pack the dash host argv array */
|
|
|
|
count = opal_argv_count(app_context[i]->dash_host);
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, (void*)(&count), 1, ORTE_STD_CNTR))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2012-08-24 02:28:29 +00:00
|
|
|
/* if there are entries, pack the dash_host entries */
|
2008-03-05 22:12:27 +00:00
|
|
|
if (0 < count) {
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(app_context[i]->dash_host), count, OPAL_STRING))) {
|
2008-03-05 22:12:27 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
2008-02-28 01:57:57 +00:00
|
|
|
}
|
|
|
|
|
2012-08-24 02:28:29 +00:00
|
|
|
/* pack the prefix dir */
|
2009-06-12 17:53:13 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&(app_context[i]->prefix_dir)), 1, OPAL_STRING))) {
|
2009-06-12 17:53:13 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&(app_context[i]->preload_binary)), 1, OPAL_BOOL))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2012-08-24 02:28:29 +00:00
|
|
|
/* Pack the preload_files */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&(app_context[i]->preload_files)), 1, OPAL_STRING))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
A number of C/R enhancements per RFC below:
http://www.open-mpi.org/community/lists/devel/2010/07/8240.php
Documentation:
http://osl.iu.edu/research/ft/
Major Changes:
--------------
* Added C/R-enabled Debugging support.
Enabled with the --enable-crdebug flag. See the following website for more information:
http://osl.iu.edu/research/ft/crdebug/
* Added Stable Storage (SStore) framework for checkpoint storage
* 'central' component does a direct to central storage save
* 'stage' component stages checkpoints to central storage while the application continues execution.
* 'stage' supports offline compression of checkpoints before moving (sstore_stage_compress)
* 'stage' supports local caching of checkpoints to improve automatic recovery (sstore_stage_caching)
* Added Compression (compress) framework to support
* Add two new ErrMgr recovery policies
* {{{crmig}}} C/R Process Migration
* {{{autor}}} C/R Automatic Recovery
* Added the {{{ompi-migrate}}} command line tool to support the {{{crmig}}} ErrMgr component
* Added CR MPI Ext functions (enable them with {{{--enable-mpi-ext=cr}}} configure option)
* {{{OMPI_CR_Checkpoint}}} (Fixes trac:2342)
* {{{OMPI_CR_Restart}}}
* {{{OMPI_CR_Migrate}}} (may need some more work for mapping rules)
* {{{OMPI_CR_INC_register_callback}}} (Fixes trac:2192)
* {{{OMPI_CR_Quiesce_start}}}
* {{{OMPI_CR_Quiesce_checkpoint}}}
* {{{OMPI_CR_Quiesce_end}}}
* {{{OMPI_CR_self_register_checkpoint_callback}}}
* {{{OMPI_CR_self_register_restart_callback}}}
* {{{OMPI_CR_self_register_continue_callback}}}
* The ErrMgr predicted_fault() interface has been changed to take an opal_list_t of ErrMgr defined types. This will allow us to better support a wider range of fault prediction services in the future.
* Add a progress meter to:
* FileM rsh (filem_rsh_process_meter)
* SnapC full (snapc_full_progress_meter)
* SStore stage (sstore_stage_progress_meter)
* Added 2 new command line options to ompi-restart
* --showme : Display the full command line that would have been exec'ed.
* --mpirun_opts : Command line options to pass directly to mpirun. (Fixes trac:2413)
* Deprecated some MCA params:
* crs_base_snapshot_dir deprecated, use sstore_stage_local_snapshot_dir
* snapc_base_global_snapshot_dir deprecated, use sstore_base_global_snapshot_dir
* snapc_base_global_shared deprecated, use sstore_stage_global_is_shared
* snapc_base_store_in_place deprecated, replaced with different components of SStore
* snapc_base_global_snapshot_ref deprecated, use sstore_base_global_snapshot_ref
* snapc_base_establish_global_snapshot_dir deprecated, never well supported
* snapc_full_skip_filem deprecated, use sstore_stage_skip_filem
Minor Changes:
--------------
* Fixes trac:1924 : {{{ompi-restart}}} now recognizes path prefixed checkpoint handles and does the right thing.
* Fixes trac:2097 : {{{ompi-info}}} should now report all available CRS components
* Fixes trac:2161 : Manual checkpoint movement. A user can 'mv' a checkpoint directory from the original location to another and still restart from it.
* Fixes trac:2208 : Honor various TMPDIR varaibles instead of forcing {{{/tmp}}}
* Move {{{ompi_cr_continue_like_restart}}} to {{{orte_cr_continue_like_restart}}} to be more flexible in where this should be set.
* opal_crs_base_metadata_write* functions have been moved to SStore to support a wider range of metadata handling functionality.
* Cleanup the CRS framework and components to work with the SStore framework.
* Cleanup the SnapC framework and components to work with the SStore framework (cleans up these code paths considerably).
* Add 'quiesce' hook to CRCP for a future enhancement.
* We now require a BLCR version that supports {{{cr_request_file()}}} or {{{cr_request_checkpoint()}}} in order to make the code more maintainable. Note that {{{cr_request_file}}} has been deprecated since 0.7.0, so we prefer to use {{{cr_request_checkpoint()}}}.
* Add optional application level INC callbacks (registered through the CR MPI Ext interface).
* Increase the {{{opal_cr_thread_sleep_wait}}} parameter to 1000 microseconds to make the C/R thread less aggressive.
* {{{opal-restart}}} now looks for cache directories before falling back on stable storage when asked.
* {{{opal-restart}}} also support local decompression before restarting
* {{{orte-checkpoint}}} now uses the SStore framework to work with the metadata
* {{{orte-restart}}} now uses the SStore framework to work with the metadata
* Remove the {{{orte-restart}}} preload option. This was removed since the user only needs to select the 'stage' component in order to support this functionality.
* Since the '-am' parameter is saved in the metadata, {{{ompi-restart}}} no longer hard codes {{{-am ft-enable-cr}}}.
* Fix {{{hnp}}} ErrMgr so that if a previous component in the stack has 'fixed' the problem, then it should be skipped.
* Make sure to decrement the number of 'num_local_procs' in the orted when one goes away.
* odls now checks the SStore framework to see if it needs to load any checkpoint files before launching (to support 'stage'). This separates the SStore logic from the --preload-[binary|files] options.
* Add unique IDs to the named pipes established between the orted and the app in SnapC. This is to better support migration and automatic recovery activities.
* Improve the checks for 'already checkpointing' error path.
* A a recovery output timer, to show how long it takes to restart a job
* Do a better job of cleaning up the old session directory on restart.
* Add a local module to the autor and crmig ErrMgr components. These small modules prevent the 'orted' component from attempting a local recovery (Which does not work for MPI apps at the moment)
* Add a fix for bounding the checkpointable region between MPI_Init and MPI_Finalize.
This commit was SVN r23587.
The following Trac tickets were found above:
Ticket 1924 --> https://svn.open-mpi.org/trac/ompi/ticket/1924
Ticket 2097 --> https://svn.open-mpi.org/trac/ompi/ticket/2097
Ticket 2161 --> https://svn.open-mpi.org/trac/ompi/ticket/2161
Ticket 2192 --> https://svn.open-mpi.org/trac/ompi/ticket/2192
Ticket 2208 --> https://svn.open-mpi.org/trac/ompi/ticket/2208
Ticket 2342 --> https://svn.open-mpi.org/trac/ompi/ticket/2342
Ticket 2413 --> https://svn.open-mpi.org/trac/ompi/ticket/2413
2010-08-10 20:51:11 +00:00
|
|
|
|
2011-04-18 14:46:42 +00:00
|
|
|
/* pack the recovery defined flag */
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&(app_context[i]->recovery_defined)), 1, OPAL_BOOL))) {
|
2011-04-18 14:46:42 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
2011-02-14 20:49:12 +00:00
|
|
|
/* pack the restart limit */
|
2010-07-17 21:03:27 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2011-02-14 20:49:12 +00:00
|
|
|
(void*)(&(app_context[i]->max_restarts)), 1, OPAL_INT32))) {
|
2010-07-17 21:03:27 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
A number of C/R enhancements per RFC below:
http://www.open-mpi.org/community/lists/devel/2010/07/8240.php
Documentation:
http://osl.iu.edu/research/ft/
Major Changes:
--------------
* Added C/R-enabled Debugging support.
Enabled with the --enable-crdebug flag. See the following website for more information:
http://osl.iu.edu/research/ft/crdebug/
* Added Stable Storage (SStore) framework for checkpoint storage
* 'central' component does a direct to central storage save
* 'stage' component stages checkpoints to central storage while the application continues execution.
* 'stage' supports offline compression of checkpoints before moving (sstore_stage_compress)
* 'stage' supports local caching of checkpoints to improve automatic recovery (sstore_stage_caching)
* Added Compression (compress) framework to support
* Add two new ErrMgr recovery policies
* {{{crmig}}} C/R Process Migration
* {{{autor}}} C/R Automatic Recovery
* Added the {{{ompi-migrate}}} command line tool to support the {{{crmig}}} ErrMgr component
* Added CR MPI Ext functions (enable them with {{{--enable-mpi-ext=cr}}} configure option)
* {{{OMPI_CR_Checkpoint}}} (Fixes trac:2342)
* {{{OMPI_CR_Restart}}}
* {{{OMPI_CR_Migrate}}} (may need some more work for mapping rules)
* {{{OMPI_CR_INC_register_callback}}} (Fixes trac:2192)
* {{{OMPI_CR_Quiesce_start}}}
* {{{OMPI_CR_Quiesce_checkpoint}}}
* {{{OMPI_CR_Quiesce_end}}}
* {{{OMPI_CR_self_register_checkpoint_callback}}}
* {{{OMPI_CR_self_register_restart_callback}}}
* {{{OMPI_CR_self_register_continue_callback}}}
* The ErrMgr predicted_fault() interface has been changed to take an opal_list_t of ErrMgr defined types. This will allow us to better support a wider range of fault prediction services in the future.
* Add a progress meter to:
* FileM rsh (filem_rsh_process_meter)
* SnapC full (snapc_full_progress_meter)
* SStore stage (sstore_stage_progress_meter)
* Added 2 new command line options to ompi-restart
* --showme : Display the full command line that would have been exec'ed.
* --mpirun_opts : Command line options to pass directly to mpirun. (Fixes trac:2413)
* Deprecated some MCA params:
* crs_base_snapshot_dir deprecated, use sstore_stage_local_snapshot_dir
* snapc_base_global_snapshot_dir deprecated, use sstore_base_global_snapshot_dir
* snapc_base_global_shared deprecated, use sstore_stage_global_is_shared
* snapc_base_store_in_place deprecated, replaced with different components of SStore
* snapc_base_global_snapshot_ref deprecated, use sstore_base_global_snapshot_ref
* snapc_base_establish_global_snapshot_dir deprecated, never well supported
* snapc_full_skip_filem deprecated, use sstore_stage_skip_filem
Minor Changes:
--------------
* Fixes trac:1924 : {{{ompi-restart}}} now recognizes path prefixed checkpoint handles and does the right thing.
* Fixes trac:2097 : {{{ompi-info}}} should now report all available CRS components
* Fixes trac:2161 : Manual checkpoint movement. A user can 'mv' a checkpoint directory from the original location to another and still restart from it.
* Fixes trac:2208 : Honor various TMPDIR varaibles instead of forcing {{{/tmp}}}
* Move {{{ompi_cr_continue_like_restart}}} to {{{orte_cr_continue_like_restart}}} to be more flexible in where this should be set.
* opal_crs_base_metadata_write* functions have been moved to SStore to support a wider range of metadata handling functionality.
* Cleanup the CRS framework and components to work with the SStore framework.
* Cleanup the SnapC framework and components to work with the SStore framework (cleans up these code paths considerably).
* Add 'quiesce' hook to CRCP for a future enhancement.
* We now require a BLCR version that supports {{{cr_request_file()}}} or {{{cr_request_checkpoint()}}} in order to make the code more maintainable. Note that {{{cr_request_file}}} has been deprecated since 0.7.0, so we prefer to use {{{cr_request_checkpoint()}}}.
* Add optional application level INC callbacks (registered through the CR MPI Ext interface).
* Increase the {{{opal_cr_thread_sleep_wait}}} parameter to 1000 microseconds to make the C/R thread less aggressive.
* {{{opal-restart}}} now looks for cache directories before falling back on stable storage when asked.
* {{{opal-restart}}} also support local decompression before restarting
* {{{orte-checkpoint}}} now uses the SStore framework to work with the metadata
* {{{orte-restart}}} now uses the SStore framework to work with the metadata
* Remove the {{{orte-restart}}} preload option. This was removed since the user only needs to select the 'stage' component in order to support this functionality.
* Since the '-am' parameter is saved in the metadata, {{{ompi-restart}}} no longer hard codes {{{-am ft-enable-cr}}}.
* Fix {{{hnp}}} ErrMgr so that if a previous component in the stack has 'fixed' the problem, then it should be skipped.
* Make sure to decrement the number of 'num_local_procs' in the orted when one goes away.
* odls now checks the SStore framework to see if it needs to load any checkpoint files before launching (to support 'stage'). This separates the SStore logic from the --preload-[binary|files] options.
* Add unique IDs to the named pipes established between the orted and the app in SnapC. This is to better support migration and automatic recovery activities.
* Improve the checks for 'already checkpointing' error path.
* A a recovery output timer, to show how long it takes to restart a job
* Do a better job of cleaning up the old session directory on restart.
* Add a local module to the autor and crmig ErrMgr components. These small modules prevent the 'orted' component from attempting a local recovery (Which does not work for MPI apps at the moment)
* Add a fix for bounding the checkpointable region between MPI_Init and MPI_Finalize.
This commit was SVN r23587.
The following Trac tickets were found above:
Ticket 1924 --> https://svn.open-mpi.org/trac/ompi/ticket/1924
Ticket 2097 --> https://svn.open-mpi.org/trac/ompi/ticket/2097
Ticket 2161 --> https://svn.open-mpi.org/trac/ompi/ticket/2161
Ticket 2192 --> https://svn.open-mpi.org/trac/ompi/ticket/2192
Ticket 2208 --> https://svn.open-mpi.org/trac/ompi/ticket/2208
Ticket 2342 --> https://svn.open-mpi.org/trac/ompi/ticket/2342
Ticket 2413 --> https://svn.open-mpi.org/trac/ompi/ticket/2413
2010-08-10 20:51:11 +00:00
|
|
|
|
|
|
|
#if OPAL_ENABLE_FT_CR == 1
|
2012-08-24 02:28:29 +00:00
|
|
|
{
|
|
|
|
int8_t have_sstore;
|
|
|
|
/* Pack the preload_files_src_dir if we have one */
|
|
|
|
if (NULL != app_context[i]->sstore_load) {
|
|
|
|
have_sstore = 1;
|
|
|
|
} else {
|
|
|
|
have_sstore = 0;
|
|
|
|
}
|
A number of C/R enhancements per RFC below:
http://www.open-mpi.org/community/lists/devel/2010/07/8240.php
Documentation:
http://osl.iu.edu/research/ft/
Major Changes:
--------------
* Added C/R-enabled Debugging support.
Enabled with the --enable-crdebug flag. See the following website for more information:
http://osl.iu.edu/research/ft/crdebug/
* Added Stable Storage (SStore) framework for checkpoint storage
* 'central' component does a direct to central storage save
* 'stage' component stages checkpoints to central storage while the application continues execution.
* 'stage' supports offline compression of checkpoints before moving (sstore_stage_compress)
* 'stage' supports local caching of checkpoints to improve automatic recovery (sstore_stage_caching)
* Added Compression (compress) framework to support
* Add two new ErrMgr recovery policies
* {{{crmig}}} C/R Process Migration
* {{{autor}}} C/R Automatic Recovery
* Added the {{{ompi-migrate}}} command line tool to support the {{{crmig}}} ErrMgr component
* Added CR MPI Ext functions (enable them with {{{--enable-mpi-ext=cr}}} configure option)
* {{{OMPI_CR_Checkpoint}}} (Fixes trac:2342)
* {{{OMPI_CR_Restart}}}
* {{{OMPI_CR_Migrate}}} (may need some more work for mapping rules)
* {{{OMPI_CR_INC_register_callback}}} (Fixes trac:2192)
* {{{OMPI_CR_Quiesce_start}}}
* {{{OMPI_CR_Quiesce_checkpoint}}}
* {{{OMPI_CR_Quiesce_end}}}
* {{{OMPI_CR_self_register_checkpoint_callback}}}
* {{{OMPI_CR_self_register_restart_callback}}}
* {{{OMPI_CR_self_register_continue_callback}}}
* The ErrMgr predicted_fault() interface has been changed to take an opal_list_t of ErrMgr defined types. This will allow us to better support a wider range of fault prediction services in the future.
* Add a progress meter to:
* FileM rsh (filem_rsh_process_meter)
* SnapC full (snapc_full_progress_meter)
* SStore stage (sstore_stage_progress_meter)
* Added 2 new command line options to ompi-restart
* --showme : Display the full command line that would have been exec'ed.
* --mpirun_opts : Command line options to pass directly to mpirun. (Fixes trac:2413)
* Deprecated some MCA params:
* crs_base_snapshot_dir deprecated, use sstore_stage_local_snapshot_dir
* snapc_base_global_snapshot_dir deprecated, use sstore_base_global_snapshot_dir
* snapc_base_global_shared deprecated, use sstore_stage_global_is_shared
* snapc_base_store_in_place deprecated, replaced with different components of SStore
* snapc_base_global_snapshot_ref deprecated, use sstore_base_global_snapshot_ref
* snapc_base_establish_global_snapshot_dir deprecated, never well supported
* snapc_full_skip_filem deprecated, use sstore_stage_skip_filem
Minor Changes:
--------------
* Fixes trac:1924 : {{{ompi-restart}}} now recognizes path prefixed checkpoint handles and does the right thing.
* Fixes trac:2097 : {{{ompi-info}}} should now report all available CRS components
* Fixes trac:2161 : Manual checkpoint movement. A user can 'mv' a checkpoint directory from the original location to another and still restart from it.
* Fixes trac:2208 : Honor various TMPDIR varaibles instead of forcing {{{/tmp}}}
* Move {{{ompi_cr_continue_like_restart}}} to {{{orte_cr_continue_like_restart}}} to be more flexible in where this should be set.
* opal_crs_base_metadata_write* functions have been moved to SStore to support a wider range of metadata handling functionality.
* Cleanup the CRS framework and components to work with the SStore framework.
* Cleanup the SnapC framework and components to work with the SStore framework (cleans up these code paths considerably).
* Add 'quiesce' hook to CRCP for a future enhancement.
* We now require a BLCR version that supports {{{cr_request_file()}}} or {{{cr_request_checkpoint()}}} in order to make the code more maintainable. Note that {{{cr_request_file}}} has been deprecated since 0.7.0, so we prefer to use {{{cr_request_checkpoint()}}}.
* Add optional application level INC callbacks (registered through the CR MPI Ext interface).
* Increase the {{{opal_cr_thread_sleep_wait}}} parameter to 1000 microseconds to make the C/R thread less aggressive.
* {{{opal-restart}}} now looks for cache directories before falling back on stable storage when asked.
* {{{opal-restart}}} also support local decompression before restarting
* {{{orte-checkpoint}}} now uses the SStore framework to work with the metadata
* {{{orte-restart}}} now uses the SStore framework to work with the metadata
* Remove the {{{orte-restart}}} preload option. This was removed since the user only needs to select the 'stage' component in order to support this functionality.
* Since the '-am' parameter is saved in the metadata, {{{ompi-restart}}} no longer hard codes {{{-am ft-enable-cr}}}.
* Fix {{{hnp}}} ErrMgr so that if a previous component in the stack has 'fixed' the problem, then it should be skipped.
* Make sure to decrement the number of 'num_local_procs' in the orted when one goes away.
* odls now checks the SStore framework to see if it needs to load any checkpoint files before launching (to support 'stage'). This separates the SStore logic from the --preload-[binary|files] options.
* Add unique IDs to the named pipes established between the orted and the app in SnapC. This is to better support migration and automatic recovery activities.
* Improve the checks for 'already checkpointing' error path.
* A a recovery output timer, to show how long it takes to restart a job
* Do a better job of cleaning up the old session directory on restart.
* Add a local module to the autor and crmig ErrMgr components. These small modules prevent the 'orted' component from attempting a local recovery (Which does not work for MPI apps at the moment)
* Add a fix for bounding the checkpointable region between MPI_Init and MPI_Finalize.
This commit was SVN r23587.
The following Trac tickets were found above:
Ticket 1924 --> https://svn.open-mpi.org/trac/ompi/ticket/1924
Ticket 2097 --> https://svn.open-mpi.org/trac/ompi/ticket/2097
Ticket 2161 --> https://svn.open-mpi.org/trac/ompi/ticket/2161
Ticket 2192 --> https://svn.open-mpi.org/trac/ompi/ticket/2192
Ticket 2208 --> https://svn.open-mpi.org/trac/ompi/ticket/2208
Ticket 2342 --> https://svn.open-mpi.org/trac/ompi/ticket/2342
Ticket 2413 --> https://svn.open-mpi.org/trac/ompi/ticket/2413
2010-08-10 20:51:11 +00:00
|
|
|
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
2012-08-24 02:28:29 +00:00
|
|
|
(void*)(&have_sstore), 1, OPAL_INT8))) {
|
A number of C/R enhancements per RFC below:
http://www.open-mpi.org/community/lists/devel/2010/07/8240.php
Documentation:
http://osl.iu.edu/research/ft/
Major Changes:
--------------
* Added C/R-enabled Debugging support.
Enabled with the --enable-crdebug flag. See the following website for more information:
http://osl.iu.edu/research/ft/crdebug/
* Added Stable Storage (SStore) framework for checkpoint storage
* 'central' component does a direct to central storage save
* 'stage' component stages checkpoints to central storage while the application continues execution.
* 'stage' supports offline compression of checkpoints before moving (sstore_stage_compress)
* 'stage' supports local caching of checkpoints to improve automatic recovery (sstore_stage_caching)
* Added Compression (compress) framework to support
* Add two new ErrMgr recovery policies
* {{{crmig}}} C/R Process Migration
* {{{autor}}} C/R Automatic Recovery
* Added the {{{ompi-migrate}}} command line tool to support the {{{crmig}}} ErrMgr component
* Added CR MPI Ext functions (enable them with {{{--enable-mpi-ext=cr}}} configure option)
* {{{OMPI_CR_Checkpoint}}} (Fixes trac:2342)
* {{{OMPI_CR_Restart}}}
* {{{OMPI_CR_Migrate}}} (may need some more work for mapping rules)
* {{{OMPI_CR_INC_register_callback}}} (Fixes trac:2192)
* {{{OMPI_CR_Quiesce_start}}}
* {{{OMPI_CR_Quiesce_checkpoint}}}
* {{{OMPI_CR_Quiesce_end}}}
* {{{OMPI_CR_self_register_checkpoint_callback}}}
* {{{OMPI_CR_self_register_restart_callback}}}
* {{{OMPI_CR_self_register_continue_callback}}}
* The ErrMgr predicted_fault() interface has been changed to take an opal_list_t of ErrMgr defined types. This will allow us to better support a wider range of fault prediction services in the future.
* Add a progress meter to:
* FileM rsh (filem_rsh_process_meter)
* SnapC full (snapc_full_progress_meter)
* SStore stage (sstore_stage_progress_meter)
* Added 2 new command line options to ompi-restart
* --showme : Display the full command line that would have been exec'ed.
* --mpirun_opts : Command line options to pass directly to mpirun. (Fixes trac:2413)
* Deprecated some MCA params:
* crs_base_snapshot_dir deprecated, use sstore_stage_local_snapshot_dir
* snapc_base_global_snapshot_dir deprecated, use sstore_base_global_snapshot_dir
* snapc_base_global_shared deprecated, use sstore_stage_global_is_shared
* snapc_base_store_in_place deprecated, replaced with different components of SStore
* snapc_base_global_snapshot_ref deprecated, use sstore_base_global_snapshot_ref
* snapc_base_establish_global_snapshot_dir deprecated, never well supported
* snapc_full_skip_filem deprecated, use sstore_stage_skip_filem
Minor Changes:
--------------
* Fixes trac:1924 : {{{ompi-restart}}} now recognizes path prefixed checkpoint handles and does the right thing.
* Fixes trac:2097 : {{{ompi-info}}} should now report all available CRS components
* Fixes trac:2161 : Manual checkpoint movement. A user can 'mv' a checkpoint directory from the original location to another and still restart from it.
* Fixes trac:2208 : Honor various TMPDIR varaibles instead of forcing {{{/tmp}}}
* Move {{{ompi_cr_continue_like_restart}}} to {{{orte_cr_continue_like_restart}}} to be more flexible in where this should be set.
* opal_crs_base_metadata_write* functions have been moved to SStore to support a wider range of metadata handling functionality.
* Cleanup the CRS framework and components to work with the SStore framework.
* Cleanup the SnapC framework and components to work with the SStore framework (cleans up these code paths considerably).
* Add 'quiesce' hook to CRCP for a future enhancement.
* We now require a BLCR version that supports {{{cr_request_file()}}} or {{{cr_request_checkpoint()}}} in order to make the code more maintainable. Note that {{{cr_request_file}}} has been deprecated since 0.7.0, so we prefer to use {{{cr_request_checkpoint()}}}.
* Add optional application level INC callbacks (registered through the CR MPI Ext interface).
* Increase the {{{opal_cr_thread_sleep_wait}}} parameter to 1000 microseconds to make the C/R thread less aggressive.
* {{{opal-restart}}} now looks for cache directories before falling back on stable storage when asked.
* {{{opal-restart}}} also support local decompression before restarting
* {{{orte-checkpoint}}} now uses the SStore framework to work with the metadata
* {{{orte-restart}}} now uses the SStore framework to work with the metadata
* Remove the {{{orte-restart}}} preload option. This was removed since the user only needs to select the 'stage' component in order to support this functionality.
* Since the '-am' parameter is saved in the metadata, {{{ompi-restart}}} no longer hard codes {{{-am ft-enable-cr}}}.
* Fix {{{hnp}}} ErrMgr so that if a previous component in the stack has 'fixed' the problem, then it should be skipped.
* Make sure to decrement the number of 'num_local_procs' in the orted when one goes away.
* odls now checks the SStore framework to see if it needs to load any checkpoint files before launching (to support 'stage'). This separates the SStore logic from the --preload-[binary|files] options.
* Add unique IDs to the named pipes established between the orted and the app in SnapC. This is to better support migration and automatic recovery activities.
* Improve the checks for 'already checkpointing' error path.
* A a recovery output timer, to show how long it takes to restart a job
* Do a better job of cleaning up the old session directory on restart.
* Add a local module to the autor and crmig ErrMgr components. These small modules prevent the 'orted' component from attempting a local recovery (Which does not work for MPI apps at the moment)
* Add a fix for bounding the checkpointable region between MPI_Init and MPI_Finalize.
This commit was SVN r23587.
The following Trac tickets were found above:
Ticket 1924 --> https://svn.open-mpi.org/trac/ompi/ticket/1924
Ticket 2097 --> https://svn.open-mpi.org/trac/ompi/ticket/2097
Ticket 2161 --> https://svn.open-mpi.org/trac/ompi/ticket/2161
Ticket 2192 --> https://svn.open-mpi.org/trac/ompi/ticket/2192
Ticket 2208 --> https://svn.open-mpi.org/trac/ompi/ticket/2208
Ticket 2342 --> https://svn.open-mpi.org/trac/ompi/ticket/2342
Ticket 2413 --> https://svn.open-mpi.org/trac/ompi/ticket/2413
2010-08-10 20:51:11 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
2012-08-24 02:28:29 +00:00
|
|
|
|
|
|
|
if( have_sstore) {
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer,
|
|
|
|
(void*)(&(app_context[i]->sstore_load)), 1, OPAL_STRING))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
}
|
A number of C/R enhancements per RFC below:
http://www.open-mpi.org/community/lists/devel/2010/07/8240.php
Documentation:
http://osl.iu.edu/research/ft/
Major Changes:
--------------
* Added C/R-enabled Debugging support.
Enabled with the --enable-crdebug flag. See the following website for more information:
http://osl.iu.edu/research/ft/crdebug/
* Added Stable Storage (SStore) framework for checkpoint storage
* 'central' component does a direct to central storage save
* 'stage' component stages checkpoints to central storage while the application continues execution.
* 'stage' supports offline compression of checkpoints before moving (sstore_stage_compress)
* 'stage' supports local caching of checkpoints to improve automatic recovery (sstore_stage_caching)
* Added Compression (compress) framework to support
* Add two new ErrMgr recovery policies
* {{{crmig}}} C/R Process Migration
* {{{autor}}} C/R Automatic Recovery
* Added the {{{ompi-migrate}}} command line tool to support the {{{crmig}}} ErrMgr component
* Added CR MPI Ext functions (enable them with {{{--enable-mpi-ext=cr}}} configure option)
* {{{OMPI_CR_Checkpoint}}} (Fixes trac:2342)
* {{{OMPI_CR_Restart}}}
* {{{OMPI_CR_Migrate}}} (may need some more work for mapping rules)
* {{{OMPI_CR_INC_register_callback}}} (Fixes trac:2192)
* {{{OMPI_CR_Quiesce_start}}}
* {{{OMPI_CR_Quiesce_checkpoint}}}
* {{{OMPI_CR_Quiesce_end}}}
* {{{OMPI_CR_self_register_checkpoint_callback}}}
* {{{OMPI_CR_self_register_restart_callback}}}
* {{{OMPI_CR_self_register_continue_callback}}}
* The ErrMgr predicted_fault() interface has been changed to take an opal_list_t of ErrMgr defined types. This will allow us to better support a wider range of fault prediction services in the future.
* Add a progress meter to:
* FileM rsh (filem_rsh_process_meter)
* SnapC full (snapc_full_progress_meter)
* SStore stage (sstore_stage_progress_meter)
* Added 2 new command line options to ompi-restart
* --showme : Display the full command line that would have been exec'ed.
* --mpirun_opts : Command line options to pass directly to mpirun. (Fixes trac:2413)
* Deprecated some MCA params:
* crs_base_snapshot_dir deprecated, use sstore_stage_local_snapshot_dir
* snapc_base_global_snapshot_dir deprecated, use sstore_base_global_snapshot_dir
* snapc_base_global_shared deprecated, use sstore_stage_global_is_shared
* snapc_base_store_in_place deprecated, replaced with different components of SStore
* snapc_base_global_snapshot_ref deprecated, use sstore_base_global_snapshot_ref
* snapc_base_establish_global_snapshot_dir deprecated, never well supported
* snapc_full_skip_filem deprecated, use sstore_stage_skip_filem
Minor Changes:
--------------
* Fixes trac:1924 : {{{ompi-restart}}} now recognizes path prefixed checkpoint handles and does the right thing.
* Fixes trac:2097 : {{{ompi-info}}} should now report all available CRS components
* Fixes trac:2161 : Manual checkpoint movement. A user can 'mv' a checkpoint directory from the original location to another and still restart from it.
* Fixes trac:2208 : Honor various TMPDIR varaibles instead of forcing {{{/tmp}}}
* Move {{{ompi_cr_continue_like_restart}}} to {{{orte_cr_continue_like_restart}}} to be more flexible in where this should be set.
* opal_crs_base_metadata_write* functions have been moved to SStore to support a wider range of metadata handling functionality.
* Cleanup the CRS framework and components to work with the SStore framework.
* Cleanup the SnapC framework and components to work with the SStore framework (cleans up these code paths considerably).
* Add 'quiesce' hook to CRCP for a future enhancement.
* We now require a BLCR version that supports {{{cr_request_file()}}} or {{{cr_request_checkpoint()}}} in order to make the code more maintainable. Note that {{{cr_request_file}}} has been deprecated since 0.7.0, so we prefer to use {{{cr_request_checkpoint()}}}.
* Add optional application level INC callbacks (registered through the CR MPI Ext interface).
* Increase the {{{opal_cr_thread_sleep_wait}}} parameter to 1000 microseconds to make the C/R thread less aggressive.
* {{{opal-restart}}} now looks for cache directories before falling back on stable storage when asked.
* {{{opal-restart}}} also support local decompression before restarting
* {{{orte-checkpoint}}} now uses the SStore framework to work with the metadata
* {{{orte-restart}}} now uses the SStore framework to work with the metadata
* Remove the {{{orte-restart}}} preload option. This was removed since the user only needs to select the 'stage' component in order to support this functionality.
* Since the '-am' parameter is saved in the metadata, {{{ompi-restart}}} no longer hard codes {{{-am ft-enable-cr}}}.
* Fix {{{hnp}}} ErrMgr so that if a previous component in the stack has 'fixed' the problem, then it should be skipped.
* Make sure to decrement the number of 'num_local_procs' in the orted when one goes away.
* odls now checks the SStore framework to see if it needs to load any checkpoint files before launching (to support 'stage'). This separates the SStore logic from the --preload-[binary|files] options.
* Add unique IDs to the named pipes established between the orted and the app in SnapC. This is to better support migration and automatic recovery activities.
* Improve the checks for 'already checkpointing' error path.
* A a recovery output timer, to show how long it takes to restart a job
* Do a better job of cleaning up the old session directory on restart.
* Add a local module to the autor and crmig ErrMgr components. These small modules prevent the 'orted' component from attempting a local recovery (Which does not work for MPI apps at the moment)
* Add a fix for bounding the checkpointable region between MPI_Init and MPI_Finalize.
This commit was SVN r23587.
The following Trac tickets were found above:
Ticket 1924 --> https://svn.open-mpi.org/trac/ompi/ticket/1924
Ticket 2097 --> https://svn.open-mpi.org/trac/ompi/ticket/2097
Ticket 2161 --> https://svn.open-mpi.org/trac/ompi/ticket/2161
Ticket 2192 --> https://svn.open-mpi.org/trac/ompi/ticket/2192
Ticket 2208 --> https://svn.open-mpi.org/trac/ompi/ticket/2208
Ticket 2342 --> https://svn.open-mpi.org/trac/ompi/ticket/2342
Ticket 2413 --> https://svn.open-mpi.org/trac/ompi/ticket/2413
2010-08-10 20:51:11 +00:00
|
|
|
}
|
|
|
|
#endif
|
2008-02-28 01:57:57 +00:00
|
|
|
}
|
2009-02-12 15:56:45 +00:00
|
|
|
|
2008-02-28 01:57:57 +00:00
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* EXIT CODE
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_exit_code(opal_buffer_t *buffer, const void *src,
|
|
|
|
int32_t num_vals, opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, src, num_vals, ORTE_EXIT_CODE_T))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
}
|
|
|
|
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* NODE STATE
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_node_state(opal_buffer_t *buffer, const void *src,
|
|
|
|
int32_t num_vals, opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, src, num_vals, ORTE_NODE_STATE_T))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
}
|
|
|
|
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* PROC STATE
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_proc_state(opal_buffer_t *buffer, const void *src,
|
|
|
|
int32_t num_vals, opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, src, num_vals, ORTE_PROC_STATE_T))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
}
|
|
|
|
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* JOB STATE
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_job_state(opal_buffer_t *buffer, const void *src,
|
|
|
|
int32_t num_vals, opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, src, num_vals, ORTE_JOB_STATE_T))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
}
|
|
|
|
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* JOB_MAP
|
|
|
|
* NOTE: There is no obvious reason to include all the node information when
|
|
|
|
* sending a map
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_map(opal_buffer_t *buffer, const void *src,
|
|
|
|
int32_t num_vals, opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
int32_t i;
|
|
|
|
orte_job_map_t **maps;
|
|
|
|
|
|
|
|
/* array of pointers to orte_job_map_t objects - need to pack the objects a set of fields at a time */
|
|
|
|
maps = (orte_job_map_t**) src;
|
|
|
|
|
|
|
|
for (i=0; i < num_vals; i++) {
|
2011-03-09 18:51:36 +00:00
|
|
|
/* pack the requested mapper */
|
2011-03-12 05:30:09 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, &(maps[i]->req_mapper), 1, OPAL_STRING))) {
|
2011-02-15 23:24:31 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
At long last, the fabled revision to the affinity system has arrived. A more detailed explanation of how this all works will be presented here:
https://svn.open-mpi.org/trac/ompi/wiki/ProcessPlacement
The wiki page is incomplete at the moment, but I hope to complete it over the next few days. I will provide updates on the devel list. As the wiki page states, the default and most commonly used options remain unchanged (except as noted below). New, esoteric and complex options have been added, but unless you are a true masochist, you are unlikely to use many of them beyond perhaps an initial curiosity-motivated experimentation.
In a nutshell, this commit revamps the map/rank/bind procedure to take into account topology info on the compute nodes. I have, for the most part, preserved the default behaviors, with three notable exceptions:
1. I have at long last bowed my head in submission to the system admin's of managed clusters. For years, they have complained about our default of allowing users to oversubscribe nodes - i.e., to run more processes on a node than allocated slots. Accordingly, I have modified the default behavior: if you are running off of hostfile/dash-host allocated nodes, then the default is to allow oversubscription. If you are running off of RM-allocated nodes, then the default is to NOT allow oversubscription. Flags to override these behaviors are provided, so this only affects the default behavior.
2. both cpus/rank and stride have been removed. The latter was demanded by those who didn't understand the purpose behind it - and I agreed as the users who requested it are no longer using it. The former was removed temporarily pending implementation.
3. vm launch is now the sole method for starting OMPI. It was just too darned hard to maintain multiple launch procedures - maybe someday, provided someone can demonstrate a reason to do so.
As Jeff stated, it is impossible to fully test a change of this size. I have tested it on Linux and Mac, covering all the default and simple options, singletons, and comm_spawn. That said, I'm sure others will find problems, so I'll be watching MTT results until this stabilizes.
This commit was SVN r25476.
2011-11-15 03:40:11 +00:00
|
|
|
/* pack the policies */
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, &(maps[i]->mapping), 1, ORTE_MAPPING_POLICY))) {
|
2011-07-23 22:23:05 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
At long last, the fabled revision to the affinity system has arrived. A more detailed explanation of how this all works will be presented here:
https://svn.open-mpi.org/trac/ompi/wiki/ProcessPlacement
The wiki page is incomplete at the moment, but I hope to complete it over the next few days. I will provide updates on the devel list. As the wiki page states, the default and most commonly used options remain unchanged (except as noted below). New, esoteric and complex options have been added, but unless you are a true masochist, you are unlikely to use many of them beyond perhaps an initial curiosity-motivated experimentation.
In a nutshell, this commit revamps the map/rank/bind procedure to take into account topology info on the compute nodes. I have, for the most part, preserved the default behaviors, with three notable exceptions:
1. I have at long last bowed my head in submission to the system admin's of managed clusters. For years, they have complained about our default of allowing users to oversubscribe nodes - i.e., to run more processes on a node than allocated slots. Accordingly, I have modified the default behavior: if you are running off of hostfile/dash-host allocated nodes, then the default is to allow oversubscription. If you are running off of RM-allocated nodes, then the default is to NOT allow oversubscription. Flags to override these behaviors are provided, so this only affects the default behavior.
2. both cpus/rank and stride have been removed. The latter was demanded by those who didn't understand the purpose behind it - and I agreed as the users who requested it are no longer using it. The former was removed temporarily pending implementation.
3. vm launch is now the sole method for starting OMPI. It was just too darned hard to maintain multiple launch procedures - maybe someday, provided someone can demonstrate a reason to do so.
As Jeff stated, it is impossible to fully test a change of this size. I have tested it on Linux and Mac, covering all the default and simple options, singletons, and comm_spawn. That said, I'm sure others will find problems, so I'll be watching MTT results until this stabilizes.
This commit was SVN r25476.
2011-11-15 03:40:11 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, &(maps[i]->ranking), 1, ORTE_RANKING_POLICY))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
At long last, the fabled revision to the affinity system has arrived. A more detailed explanation of how this all works will be presented here:
https://svn.open-mpi.org/trac/ompi/wiki/ProcessPlacement
The wiki page is incomplete at the moment, but I hope to complete it over the next few days. I will provide updates on the devel list. As the wiki page states, the default and most commonly used options remain unchanged (except as noted below). New, esoteric and complex options have been added, but unless you are a true masochist, you are unlikely to use many of them beyond perhaps an initial curiosity-motivated experimentation.
In a nutshell, this commit revamps the map/rank/bind procedure to take into account topology info on the compute nodes. I have, for the most part, preserved the default behaviors, with three notable exceptions:
1. I have at long last bowed my head in submission to the system admin's of managed clusters. For years, they have complained about our default of allowing users to oversubscribe nodes - i.e., to run more processes on a node than allocated slots. Accordingly, I have modified the default behavior: if you are running off of hostfile/dash-host allocated nodes, then the default is to allow oversubscription. If you are running off of RM-allocated nodes, then the default is to NOT allow oversubscription. Flags to override these behaviors are provided, so this only affects the default behavior.
2. both cpus/rank and stride have been removed. The latter was demanded by those who didn't understand the purpose behind it - and I agreed as the users who requested it are no longer using it. The former was removed temporarily pending implementation.
3. vm launch is now the sole method for starting OMPI. It was just too darned hard to maintain multiple launch procedures - maybe someday, provided someone can demonstrate a reason to do so.
As Jeff stated, it is impossible to fully test a change of this size. I have tested it on Linux and Mac, covering all the default and simple options, singletons, and comm_spawn. That said, I'm sure others will find problems, so I'll be watching MTT results until this stabilizes.
This commit was SVN r25476.
2011-11-15 03:40:11 +00:00
|
|
|
#if OPAL_HAVE_HWLOC
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, &(maps[i]->binding), 1, OPAL_BINDING_POLICY))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
At long last, the fabled revision to the affinity system has arrived. A more detailed explanation of how this all works will be presented here:
https://svn.open-mpi.org/trac/ompi/wiki/ProcessPlacement
The wiki page is incomplete at the moment, but I hope to complete it over the next few days. I will provide updates on the devel list. As the wiki page states, the default and most commonly used options remain unchanged (except as noted below). New, esoteric and complex options have been added, but unless you are a true masochist, you are unlikely to use many of them beyond perhaps an initial curiosity-motivated experimentation.
In a nutshell, this commit revamps the map/rank/bind procedure to take into account topology info on the compute nodes. I have, for the most part, preserved the default behaviors, with three notable exceptions:
1. I have at long last bowed my head in submission to the system admin's of managed clusters. For years, they have complained about our default of allowing users to oversubscribe nodes - i.e., to run more processes on a node than allocated slots. Accordingly, I have modified the default behavior: if you are running off of hostfile/dash-host allocated nodes, then the default is to allow oversubscription. If you are running off of RM-allocated nodes, then the default is to NOT allow oversubscription. Flags to override these behaviors are provided, so this only affects the default behavior.
2. both cpus/rank and stride have been removed. The latter was demanded by those who didn't understand the purpose behind it - and I agreed as the users who requested it are no longer using it. The former was removed temporarily pending implementation.
3. vm launch is now the sole method for starting OMPI. It was just too darned hard to maintain multiple launch procedures - maybe someday, provided someone can demonstrate a reason to do so.
As Jeff stated, it is impossible to fully test a change of this size. I have tested it on Linux and Mac, covering all the default and simple options, singletons, and comm_spawn. That said, I'm sure others will find problems, so I'll be watching MTT results until this stabilizes.
This commit was SVN r25476.
2011-11-15 03:40:11 +00:00
|
|
|
#endif
|
|
|
|
/* pack any ppr */
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, &(maps[i]->ppr), 1, OPAL_STRING))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pack the display map flag */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, &(maps[i]->display_map), 1, OPAL_BOOL))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* RML TAG
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_tag(opal_buffer_t *buffer, const void *src,
|
|
|
|
int32_t num_vals, opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
|
|
|
|
/* Turn around and pack the real type */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss_pack_buffer(buffer, src, num_vals, ORTE_RML_TAG_T))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
}
|
|
|
|
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ORTE_DAEMON_CMD
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_daemon_cmd(opal_buffer_t *buffer, const void *src, int32_t num_vals,
|
|
|
|
opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
/* Turn around and pack the real type */
|
2008-06-19 18:46:25 +00:00
|
|
|
if (ORTE_SUCCESS != (ret = opal_dss_pack_buffer(buffer, src, num_vals, ORTE_DAEMON_CMD_T))) {
|
2008-02-28 01:57:57 +00:00
|
|
|
ORTE_ERROR_LOG(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
Roll in the revamped IOF subsystem. Per the devel mailing list email, this is a complete rewrite of the iof framework designed to simplify the code for maintainability, and to support features we had planned to do, but were too difficult to implement in the old code. Specifically, the new code:
1. completely and cleanly separates responsibilities between the HNP, orted, and tool components.
2. removes all wireup messaging during launch and shutdown.
3. maintains flow control for stdin to avoid large-scale consumption of memory by orteds when large input files are forwarded. This is done using an xon/xoff protocol.
4. enables specification of stdin recipients on the mpirun cmd line. Allowed options include rank, "all", or "none". Default is rank 0.
5. creates a new MPI_Info key "ompi_stdin_target" that supports the above options for child jobs. Default is "none".
6. adds a new tool "orte-iof" that can connect to a running mpirun and display the output. Cmd line options allow selection of any combination of stdout, stderr, and stddiag. Default is stdout.
7. adds a new mpirun and orte-iof cmd line option "tag-output" that will tag each line of output with process name and stream ident. For example, "[1,0]<stdout>this is output"
This is not intended for the 1.3 release as it is a major change requiring considerable soak time.
This commit was SVN r19767.
2008-10-18 00:00:49 +00:00
|
|
|
/*
|
|
|
|
* ORTE_IOF_TAG
|
|
|
|
*/
|
|
|
|
int orte_dt_pack_iof_tag(opal_buffer_t *buffer, const void *src, int32_t num_vals,
|
|
|
|
opal_data_type_t type)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
/* Turn around and pack the real type */
|
|
|
|
if (ORTE_SUCCESS != (ret = opal_dss_pack_buffer(buffer, src, num_vals, ORTE_IOF_TAG_T))) {
|
|
|
|
ORTE_ERROR_LOG(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|