1 /*
2 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
3 * University Research and Technology
4 * Corporation. All rights reserved.
5 * Copyright (c) 2004-2006 The University of Tennessee and The University
6 * of Tennessee Research Foundation. All rights
7 * reserved.
8 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9 * University of Stuttgart. All rights reserved.
10 * Copyright (c) 2004-2005 The Regents of the University of California.
11 * All rights reserved.
12 * Copyright (c) 2008 Voltaire. All rights reserved
13 * Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
14 * Copyright (c) 2014 Intel, Inc. All rights reserved.
15 * $COPYRIGHT$
16 *
17 * Additional copyrights may follow
18 *
19 * $HEADER$
20 */
21 /**
22 * @file
23 *
24 * Resource Mapping
25 */
26
27
28 #ifndef ORTE_RMAPS_RF_H
29 #define ORTE_RMAPS_RF_H
30
31 #include "orte_config.h"
32
33 #include "opal/class/opal_object.h"
34
35 #include "orte/mca/rmaps/rmaps.h"
36
37 BEGIN_C_DECLS
38
39 int orte_rmaps_rank_file_lex_destroy (void);
40
41 struct orte_rmaps_rf_component_t {
42 orte_rmaps_base_component_t super;
43 char *slot_list;
44 bool physical;
45 };
46 typedef struct orte_rmaps_rf_component_t orte_rmaps_rf_component_t;
47
48 ORTE_MODULE_DECLSPEC extern orte_rmaps_rf_component_t mca_rmaps_rank_file_component;
49 extern orte_rmaps_base_module_t orte_rmaps_rank_file_module;
50
51
52 typedef struct cpu_socket_t cpu_socket_t;
53
54 struct orte_rmaps_rank_file_map_t {
55 opal_object_t super;
56 char* node_name;
57 char slot_list[64];
58 };
59 typedef struct orte_rmaps_rank_file_map_t orte_rmaps_rank_file_map_t;
60
61 ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_rmaps_rank_file_map_t);
62
63 END_C_DECLS
64
65 #endif