2005-03-14 20:57:21 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00:00
|
|
|
* 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.
|
2005-03-14 20:57:21 +00:00
|
|
|
* 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$
|
|
|
|
*/
|
2005-10-07 22:24:52 +00:00
|
|
|
/** @file */
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
#ifndef ORTE_RAS_BASE_NODE_H
|
|
|
|
#define ORTE_RAS_BASE_NODE_H
|
|
|
|
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "orte/orte_types.h"
|
|
|
|
#include "orte/mca/soh/soh_types.h"
|
|
|
|
#include "orte/mca/rmgr/rmgr_types.h"
|
|
|
|
#include "orte/mca/ras/ras.h"
|
2005-10-07 22:24:52 +00:00
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
2005-10-27 17:04:10 +00:00
|
|
|
/*
|
|
|
|
* Query the registry for a specific node
|
|
|
|
*/
|
|
|
|
orte_ras_node_t* orte_ras_base_node_lookup(orte_cellid_t, const char* nodename);
|
|
|
|
|
2005-10-07 22:24:52 +00:00
|
|
|
/**
|
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
|
|
|
|
2005-10-07 22:24:52 +00:00
|
|
|
/**
|
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
|
|
|
|
2005-10-07 22:24:52 +00:00
|
|
|
/**
|
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
|
|
|
|
2005-10-07 22:24:52 +00:00
|
|
|
/**
|
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
|
|
|
|
2005-10-07 22:24:52 +00:00
|
|
|
/**
|
|
|
|
* Check to see if the node segment is empty
|
|
|
|
*/
|
|
|
|
int orte_ras_base_node_segment_empty(bool *empty);
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|