Don't just hardcode the max length of the PMI name as it could be wrong. PMI2 installations seem to be retaining at least some of the PMI functions, so use the one to get the max name length.
This commit was SVN r28962.
Этот коммит содержится в:
родитель
befcd8b63e
Коммит
3c8aa7c296
@ -586,15 +586,10 @@ static int setup_pmi(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if WANT_PMI2_SUPPORT
|
||||
/* TODO -- is this ok */
|
||||
max_length = 1024;
|
||||
#else
|
||||
if (PMI_SUCCESS != (rc = PMI_KVS_Get_name_length_max(&max_length))) {
|
||||
OPAL_PMI_ERROR(rc, "PMI_KVS_Get_name_length_max");
|
||||
return OPAL_ERROR;
|
||||
}
|
||||
#endif
|
||||
pmi_kvs_name = (char*)malloc(max_length);
|
||||
if (NULL == pmi_kvs_name) {
|
||||
return OPAL_ERR_OUT_OF_RESOURCE;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user