2005-03-14 20:57:21 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2005-03-14 20:57:21 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef ORTE_RAS_BASE_NODE_H
|
|
|
|
#define ORTE_RAS_BASE_NODE_H
|
|
|
|
|
|
|
|
#include "include/orte_types.h"
|
|
|
|
#include "mca/soh/soh_types.h"
|
|
|
|
#include "mca/ras/ras.h"
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Convience routines to query/set node state in the registry
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Query the registry for all available nodes
|
|
|
|
*/
|
2005-07-03 16:22:16 +00:00
|
|
|
int orte_ras_base_node_query(opal_list_t*);
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Query the registry for all nodes allocated to a specific job
|
|
|
|
*/
|
2005-07-03 16:22:16 +00:00
|
|
|
int orte_ras_base_node_query_alloc(opal_list_t*, orte_jobid_t);
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Add the specified node definitions to the registry
|
|
|
|
*/
|
2005-07-03 16:22:16 +00:00
|
|
|
int orte_ras_base_node_insert(opal_list_t*);
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Delete the specified nodes from the registry
|
|
|
|
*/
|
2005-07-03 16:22:16 +00:00
|
|
|
int orte_ras_base_node_delete(opal_list_t*);
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Assign the allocated slots on the specified nodes to the
|
|
|
|
* indicated jobid.
|
|
|
|
*/
|
2005-07-03 16:22:16 +00:00
|
|
|
int orte_ras_base_node_assign(opal_list_t*, orte_jobid_t);
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|