Fix the indentation. Allow for deregistration of OPAL params.
This commit was SVN r32242.
Этот коммит содержится в:
родитель
2f6bc76dc1
Коммит
7c21491858
@ -115,6 +115,7 @@ OPAL_DECLSPEC void opal_finalize_test(void);
|
||||
* Internal function. Do not call.
|
||||
*/
|
||||
OPAL_DECLSPEC int opal_register_params(void);
|
||||
OPAL_DECLSPEC int opal_deregister_params(void);
|
||||
|
||||
END_C_DECLS
|
||||
|
||||
|
@ -51,9 +51,10 @@ int opal_pmi_version = 0;
|
||||
bool opal_base_distill_checkpoint_ready = false;
|
||||
#endif
|
||||
|
||||
static bool opal_register_done = false;
|
||||
|
||||
int opal_register_params(void)
|
||||
{
|
||||
static bool opal_register_done = false;
|
||||
int ret;
|
||||
|
||||
if (opal_register_done) {
|
||||
@ -206,3 +207,14 @@ int opal_register_params(void)
|
||||
|
||||
return OPAL_SUCCESS;
|
||||
}
|
||||
|
||||
int opal_deregister_params(void)
|
||||
{
|
||||
opal_signal_string = NULL;
|
||||
opal_net_private_ipv4 = NULL;
|
||||
opal_set_max_sys_limits = NULL;
|
||||
opal_pmi_version = 0;
|
||||
opal_register_done = false;
|
||||
|
||||
return OPAL_SUCCESS;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user