OSHMEM: set default transport for mxm under OSHMEM to be ud, can be overwritten with MXM_OSHMEM_TL= variable
Refs trac:3763 This commit was SVN r30088. The following Trac tickets were found above: Ticket 3763 --> https://svn.open-mpi.org/trac/ompi/ticket/3763
Этот коммит содержится в:
родитель
a8a91b374e
Коммит
e2f372ac4b
@ -91,6 +91,8 @@ struct mca_spml_ikrit_t {
|
||||
bool enabled;
|
||||
opal_list_t active_peers;
|
||||
int n_relays; /* number of procs/node serving as relays */
|
||||
|
||||
char *mxm_tls;
|
||||
};
|
||||
|
||||
typedef struct mca_spml_ikrit_t mca_spml_ikrit_t;
|
||||
|
@ -77,6 +77,22 @@ static inline int mca_spml_ikrit_param_register_int(const char* param_name,
|
||||
return param_value;
|
||||
}
|
||||
|
||||
static void mca_spml_ikrit_param_register_string(const char* param_name,
|
||||
char* default_value,
|
||||
const char *help_msg,
|
||||
char **storage)
|
||||
{
|
||||
*storage = default_value;
|
||||
(void) mca_base_component_var_register(&mca_spml_ikrit_component.spmlm_version,
|
||||
param_name,
|
||||
help_msg,
|
||||
MCA_BASE_VAR_TYPE_STRING, NULL, 0, 0,
|
||||
OPAL_INFO_LVL_9,
|
||||
MCA_BASE_VAR_SCOPE_READONLY,
|
||||
storage);
|
||||
|
||||
}
|
||||
|
||||
static int mca_spml_ikrit_component_register(void)
|
||||
{
|
||||
int np;
|
||||
@ -92,6 +108,11 @@ static int mca_spml_ikrit_component_register(void)
|
||||
20,
|
||||
"[integer] ikrit priority");
|
||||
|
||||
mca_spml_ikrit_param_register_string("mxm_tls",
|
||||
"ud,self",
|
||||
"[string] TL channels for MXM",
|
||||
&mca_spml_ikrit.mxm_tls);
|
||||
|
||||
mca_spml_ikrit.n_relays =
|
||||
mca_spml_ikrit_param_register_int("use_relays",
|
||||
-1,
|
||||
@ -154,6 +175,7 @@ static int mca_spml_ikrit_component_open(void)
|
||||
if ((MXM_OK != mxm_config_read_context_opts(&mca_spml_ikrit.mxm_ctx_opts)) ||
|
||||
(MXM_OK != mxm_config_read_ep_opts(&mca_spml_ikrit.mxm_ep_opts)))
|
||||
#else
|
||||
setenv("MXM_OSHMEM_TLS", mca_spml_ikrit.mxm_tls, 0);
|
||||
if (MXM_OK != mxm_config_read_opts(&mca_spml_ikrit.mxm_ctx_opts,
|
||||
&mca_spml_ikrit.mxm_ep_opts,
|
||||
"OSHMEM", NULL, 0))
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user