f4a458532b
This change does a couple of things: 1. Since the USE_PARENT_ALLOC attribute is a directive about regarding allocation of resources to a job, it more properly should be an attribute of the RAS. Change the name to reflect that and move the attribute define to the ras_types.h file. 2. Add the attributes list to the RMAPS map_job interface. This provides us with the desired flexibility to dynamically specify directives for mapping. The system will - in the absence of any attribute-based directive - default to the values provided in the MCA parameters (either from environment or command-line interface). This commit was SVN r12164.
76 строки
1.7 KiB
C
76 строки
1.7 KiB
C
/* -*- 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$
|
|
*
|
|
*/
|
|
#ifndef ORTE_RMAPS_PROXY_H
|
|
#define ORTE_RMAPS_PROXY_H
|
|
|
|
|
|
#include "orte_config.h"
|
|
#include "orte/orte_types.h"
|
|
|
|
#include "orte/mca/ns/ns_types.h"
|
|
|
|
#include "orte/mca/rmaps/rmaps.h"
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* Module open / close
|
|
*/
|
|
int orte_rmaps_proxy_open(void);
|
|
int orte_rmaps_proxy_close(void);
|
|
|
|
|
|
/*
|
|
* Startup / Shutdown
|
|
*/
|
|
orte_rmaps_base_module_t*
|
|
orte_rmaps_proxy_component_init(int *priority);
|
|
|
|
int orte_rmaps_proxy_finalize(void);
|
|
|
|
/*
|
|
* globals used within the component
|
|
*/
|
|
typedef struct {
|
|
int debug;
|
|
orte_process_name_t *replica;
|
|
} orte_rmaps_proxy_globals_t;
|
|
|
|
|
|
extern orte_rmaps_proxy_globals_t orte_rmaps_proxy_globals;
|
|
|
|
/*
|
|
* Component API functions
|
|
*/
|
|
int orte_rmaps_proxy_map(orte_jobid_t job, opal_list_t *attributes);
|
|
|
|
/*
|
|
* Global component.
|
|
*/
|
|
ORTE_MODULE_DECLSPEC extern orte_rmaps_base_component_t mca_rmaps_proxy_component;
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
#endif
|