Skip to content

Commit b267915

Browse files
ggouaillardetScott Miller
authored andcommitted
regx: move most functions from the fwd component to base
Signed-off-by: Gilles Gouaillardet <[email protected]> (cherry picked from commit c2a358f)
1 parent 852b3c3 commit b267915

File tree

4 files changed

+1324
-1272
lines changed

4 files changed

+1324
-1272
lines changed

orte/mca/regx/base/Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#
22
# Copyright (c) 2015-2018 Intel, Inc. All rights reserved.
3+
# Copyright (c) 2018 Research Organization for Information Science
4+
# and Technology (RIST). All rights reserved.
35
# $COPYRIGHT$
46
#
57
# Additional copyrights may follow
@@ -11,5 +13,6 @@ headers += \
1113
base/base.h
1214

1315
libmca_regx_la_SOURCES += \
16+
base/regx_base_default_fns.c \
1417
base/regx_base_frame.c \
1518
base/regx_base_select.c

orte/mca/regx/base/base.h

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,40 @@ ORTE_DECLSPEC extern mca_base_framework_t orte_regx_base_framework;
3535
/* select all components */
3636
ORTE_DECLSPEC int orte_regx_base_select(void);
3737

38+
/*
39+
* common stuff
40+
*/
41+
typedef struct {
42+
opal_list_item_t super;
43+
int vpid;
44+
int cnt;
45+
int slots;
46+
orte_topology_t *t;
47+
} orte_regex_range_t;
48+
49+
OBJ_CLASS_DECLARATION(orte_regex_range_t);
50+
51+
typedef struct {
52+
/* list object */
53+
opal_list_item_t super;
54+
char *prefix;
55+
char *suffix;
56+
int num_digits;
57+
opal_list_t ranges;
58+
} orte_regex_node_t;
3859
END_C_DECLS
3960

61+
OBJ_CLASS_DECLARATION(orte_regex_node_t);
62+
63+
ORTE_DECLSPEC extern int orte_regx_base_nidmap_parse(char *regex);
64+
65+
ORTE_DECLSPEC extern int orte_regx_base_encode_nodemap(opal_buffer_t *buffer);
66+
67+
ORTE_DECLSPEC int orte_regx_base_decode_daemon_nodemap(opal_buffer_t *buffer);
68+
69+
ORTE_DECLSPEC int orte_regx_base_generate_ppn(orte_job_t *jdata, char **ppn);
70+
71+
ORTE_DECLSPEC int orte_regx_base_parse_ppn(orte_job_t *jdata, char *regex);
72+
73+
ORTE_DECLSPEC int orte_regx_base_extract_node_names(char *regexp, char ***names);
4074
#endif

0 commit comments

Comments
 (0)