42ec26e640
This commit was SVN r7999.
84 строки
2.2 KiB
C
84 строки
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
|
|
*
|
|
* Resource Discovery (Hostfile)
|
|
*/
|
|
#ifndef ORTE_RDS_RESFILE_H
|
|
#define ORTE_RDS_RESFILE_H
|
|
|
|
#include "orte_config.h"
|
|
|
|
#include "opal/threads/mutex.h"
|
|
|
|
#include "mca/rds/base/base.h"
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* resfile internal globals */
|
|
extern opal_list_t resource_list;
|
|
|
|
/*
|
|
* RDS Resource file functions
|
|
*/
|
|
int orte_rds_resfile_query(void);
|
|
|
|
int orte_rds_resfile_finalize(void);
|
|
|
|
/* RDS resource file internal functions */
|
|
char *orte_rds_resfile_getline(FILE *fp);
|
|
|
|
char *orte_rds_resfile_parse_field(char *input);
|
|
|
|
/* RDS resource file attribute parsers */
|
|
int orte_rds_resfile_parse_fe(orte_rds_cell_desc_t *cell, FILE *fp);
|
|
|
|
int orte_rds_resfile_parse_cd(orte_rds_cell_desc_t *cell, FILE *fp);
|
|
|
|
int orte_rds_resfile_parse_os(orte_rds_cell_desc_t *cell, FILE *fp);
|
|
|
|
int orte_rds_resfile_parse_fs(orte_rds_cell_desc_t *cell, FILE *fp);
|
|
|
|
int orte_rds_resfile_parse_se(orte_rds_cell_desc_t *cell, FILE *fp);
|
|
|
|
int orte_rds_resfile_parse_na(orte_rds_cell_desc_t *cell, FILE *fp);
|
|
|
|
/**
|
|
* RDS Resource file Component
|
|
*/
|
|
struct orte_rds_resfile_component_t {
|
|
orte_rds_base_component_t super;
|
|
int debug;
|
|
char *filename;
|
|
opal_mutex_t lock;
|
|
};
|
|
typedef struct orte_rds_resfile_component_t orte_rds_resfile_component_t;
|
|
|
|
OMPI_COMP_EXPORT extern orte_rds_resfile_component_t mca_rds_resfile_component;
|
|
OMPI_COMP_EXPORT extern orte_rds_base_module_t orte_rds_resfile_module;
|
|
|
|
extern bool orte_rds_resfile_queried;
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
}
|
|
#endif
|
|
#endif
|