
- use the OPAL functions for PATH and environment variables - make all headers C++ friendly - no unamed structures - no implicit cast. Plus a full implementation for the orte_wait functions. This commit was SVN r11347.
73 строки
2.0 KiB
C
73 строки
2.0 KiB
C
/*
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
* University Research and Technology
|
|
* Corporation. All rights reserved.
|
|
* Copyright (c) 2004-2006 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 */
|
|
|
|
#ifndef ORTE_RAS_BASE_NODE_H
|
|
#define ORTE_RAS_BASE_NODE_H
|
|
|
|
#include "orte/orte_types.h"
|
|
#include "orte/mca/smr/smr_types.h"
|
|
#include "orte/mca/rmgr/rmgr_types.h"
|
|
#include "orte/mca/ras/ras.h"
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* Query the registry for all available nodes
|
|
*/
|
|
ORTE_DECLSPEC int orte_ras_base_node_query(opal_list_t*);
|
|
|
|
/*
|
|
* Query the registry for a specific node
|
|
*/
|
|
ORTE_DECLSPEC orte_ras_node_t* orte_ras_base_node_lookup(orte_cellid_t, const char* nodename);
|
|
|
|
/**
|
|
* Query the registry for all nodes allocated to a specific job
|
|
*/
|
|
ORTE_DECLSPEC int orte_ras_base_node_query_alloc(opal_list_t*, orte_jobid_t);
|
|
|
|
/**
|
|
* Add the specified node definitions to the registry
|
|
*/
|
|
ORTE_DECLSPEC int orte_ras_base_node_insert(opal_list_t*);
|
|
|
|
/**
|
|
* Delete the specified nodes from the registry
|
|
*/
|
|
ORTE_DECLSPEC int orte_ras_base_node_delete(opal_list_t*);
|
|
|
|
/**
|
|
* Assign the allocated slots on the specified nodes to the
|
|
* indicated jobid.
|
|
*/
|
|
ORTE_DECLSPEC int orte_ras_base_node_assign(opal_list_t*, orte_jobid_t);
|
|
|
|
/**
|
|
* Check to see if the node segment is empty
|
|
*/
|
|
ORTE_DECLSPEC int orte_ras_base_node_segment_empty(bool *empty);
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
}
|
|
#endif
|
|
#endif
|