regx: move most functions from the fwd component to base
Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
родитель
0c686f01e5
Коммит
c2a358ff45
@ -1,5 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2015-2018 Intel, Inc. All rights reserved.
|
# Copyright (c) 2015-2018 Intel, Inc. All rights reserved.
|
||||||
|
# Copyright (c) 2018 Research Organization for Information Science
|
||||||
|
# and Technology (RIST). All rights reserved.
|
||||||
# $COPYRIGHT$
|
# $COPYRIGHT$
|
||||||
#
|
#
|
||||||
# Additional copyrights may follow
|
# Additional copyrights may follow
|
||||||
@ -11,5 +13,6 @@ headers += \
|
|||||||
base/base.h
|
base/base.h
|
||||||
|
|
||||||
libmca_regx_la_SOURCES += \
|
libmca_regx_la_SOURCES += \
|
||||||
|
base/regx_base_default_fns.c \
|
||||||
base/regx_base_frame.c \
|
base/regx_base_frame.c \
|
||||||
base/regx_base_select.c
|
base/regx_base_select.c
|
||||||
|
@ -35,6 +35,40 @@ ORTE_DECLSPEC extern mca_base_framework_t orte_regx_base_framework;
|
|||||||
/* select all components */
|
/* select all components */
|
||||||
ORTE_DECLSPEC int orte_regx_base_select(void);
|
ORTE_DECLSPEC int orte_regx_base_select(void);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* common stuff
|
||||||
|
*/
|
||||||
|
typedef struct {
|
||||||
|
opal_list_item_t super;
|
||||||
|
int vpid;
|
||||||
|
int cnt;
|
||||||
|
int slots;
|
||||||
|
orte_topology_t *t;
|
||||||
|
} orte_regex_range_t;
|
||||||
|
|
||||||
|
OBJ_CLASS_DECLARATION(orte_regex_range_t);
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
/* list object */
|
||||||
|
opal_list_item_t super;
|
||||||
|
char *prefix;
|
||||||
|
char *suffix;
|
||||||
|
int num_digits;
|
||||||
|
opal_list_t ranges;
|
||||||
|
} orte_regex_node_t;
|
||||||
END_C_DECLS
|
END_C_DECLS
|
||||||
|
|
||||||
|
OBJ_CLASS_DECLARATION(orte_regex_node_t);
|
||||||
|
|
||||||
|
ORTE_DECLSPEC extern int orte_regx_base_nidmap_parse(char *regex);
|
||||||
|
|
||||||
|
ORTE_DECLSPEC extern int orte_regx_base_encode_nodemap(opal_buffer_t *buffer);
|
||||||
|
|
||||||
|
ORTE_DECLSPEC int orte_regx_base_decode_daemon_nodemap(opal_buffer_t *buffer);
|
||||||
|
|
||||||
|
ORTE_DECLSPEC int orte_regx_base_generate_ppn(orte_job_t *jdata, char **ppn);
|
||||||
|
|
||||||
|
ORTE_DECLSPEC int orte_regx_base_parse_ppn(orte_job_t *jdata, char *regex);
|
||||||
|
|
||||||
|
ORTE_DECLSPEC int orte_regx_base_extract_node_names(char *regexp, char ***names);
|
||||||
#endif
|
#endif
|
||||||
|
1281
orte/mca/regx/base/regx_base_default_fns.c
Обычный файл
1281
orte/mca/regx/base/regx_base_default_fns.c
Обычный файл
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
x
Ссылка в новой задаче
Block a user