ee5a626d25
1. Changed the RMGR and PLS APIs to add "signal_job" and "signal_proc" entry points. Only the "signal_job" entries are implemented - none of the components have implementations for "signal_proc" at this time. Thus, you can signal all of the procs in a job, but cannot currently signal only one specific proc. 2. Implemented those new API functions in all components except xgrid (Brian will do so very soon). Only the rsh/ssh and fork modules have been tested, however, and only under OS-X. 3. Added signal traps and callback functions for SIGUSR1/2 to orterun/mpirun that catch those signals and call the appropriate commands to propagate them out to all processes in the job. 4. Added a new test directory under the orte branch to (eventually) hold unit and system level tests for just the run-time. Since our test branch of the repository is under restricted access, people working on the RTE were continually developing their own system-level tests - thus making it hard to help diagnose problems. I have moved the more commonly-used functions here, and added one specifically for testing the SIGUSR1/2 functionality. I will be contacting people directly to seek help with testing the changes on more environments. Other than compile issues, you should see absolutely no change in behavior on any of your systems - this additional functionality is transparent to anyone who does not issue a SIGUSR1/2 to mpirun. Ralph This commit was SVN r10258.
111 строки
2.2 KiB
C
111 строки
2.2 KiB
C
/*
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
* University Research and Technology
|
|
* Corporation. All rights reserved.
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
* 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.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
/** @file:
|
|
*
|
|
*/
|
|
|
|
#include "orte_config.h"
|
|
|
|
#include "orte/orte_constants.h"
|
|
#include "opal/mca/mca.h"
|
|
#include "orte/mca/rmgr/base/base.h"
|
|
|
|
|
|
/*
|
|
* "not available" functions
|
|
*/
|
|
int
|
|
orte_rmgr_base_create_not_available(
|
|
orte_app_context_t** app_context,
|
|
size_t num_context,
|
|
orte_jobid_t* jobid)
|
|
{
|
|
return ORTE_ERR_UNREACH;
|
|
}
|
|
|
|
int
|
|
orte_rmgr_base_query_not_available(void)
|
|
{
|
|
return ORTE_ERR_UNREACH;
|
|
}
|
|
|
|
int
|
|
orte_rmgr_base_allocate_not_available(orte_jobid_t jobid)
|
|
{
|
|
return ORTE_ERR_UNREACH;
|
|
}
|
|
|
|
int
|
|
orte_rmgr_base_deallocate_not_available(orte_jobid_t jobid)
|
|
{
|
|
return ORTE_ERR_UNREACH;
|
|
}
|
|
|
|
int
|
|
orte_rmgr_base_map_not_available(orte_jobid_t jobid)
|
|
{
|
|
return ORTE_ERR_UNREACH;
|
|
}
|
|
|
|
int
|
|
orte_rmgr_base_launch_not_available(orte_jobid_t jobid)
|
|
{
|
|
return ORTE_ERR_UNREACH;
|
|
}
|
|
|
|
int
|
|
orte_rmgr_base_terminate_job_not_available(orte_jobid_t jobid)
|
|
{
|
|
return ORTE_ERR_UNREACH;
|
|
}
|
|
|
|
int
|
|
orte_rmgr_base_terminate_proc_not_available(const orte_process_name_t* proc_name)
|
|
{
|
|
return ORTE_ERR_UNREACH;
|
|
}
|
|
|
|
int
|
|
orte_rmgr_base_signal_job_not_available(orte_jobid_t jobid, int32_t signal)
|
|
{
|
|
return ORTE_ERR_UNREACH;
|
|
}
|
|
|
|
int
|
|
orte_rmgr_base_signal_proc_not_available(const orte_process_name_t* proc_name, int32_t signal)
|
|
{
|
|
return ORTE_ERR_UNREACH;
|
|
}
|
|
|
|
int
|
|
orte_rmgr_base_spawn_not_available(
|
|
orte_app_context_t** app_context,
|
|
size_t num_context,
|
|
orte_jobid_t* jobid,
|
|
orte_rmgr_cb_fn_t cbfn,
|
|
orte_proc_state_t cb_conditions)
|
|
{
|
|
return ORTE_ERR_UNREACH;
|
|
}
|
|
|
|
int
|
|
orte_rmgr_base_finalize_not_available(void)
|
|
{
|
|
return ORTE_ERR_UNREACH;
|
|
}
|