1
1

Merge pull request #7722 from mwheinz/mwheinz-7721

Add check for PSM2 reference counting to PSM2 MTL #7721
Этот коммит содержится в:
Michael Heinz 2020-05-19 08:06:41 -04:00 коммит произвёл GitHub
родитель fa483b686d f10305a49f
Коммит e21c31f54c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 21 добавлений и 1 удалений

Просмотреть файл

@ -76,7 +76,15 @@ AC_DEFUN([OMPI_CHECK_PSM2],[
[AC_MSG_WARN([glob.h not found. Can not build component.])
ompi_check_psm2_happy="no"])])
OPAL_SUMMARY_ADD([[Transports]],[[Intel Omnipath (PSM2)]],[$1],[$ompi_check_psm2_happy])
AS_IF([test "$ompi_check_psm2_happy" = "yes"],
[AC_CHECK_DECL([PSM2_LIB_REFCOUNT_CAP],
[],
[AC_MSG_WARN([PSM2 needs to be version 11.2.173 or later. Disabling MTL.])
ompi_check_psm2_happy="no"],
[#include <psm2.h>])
])
OPAL_SUMMARY_ADD([[Transports]],[[Intel Omnipath (PSM2)]],[$1],[$ompi_check_psm2_happy])
fi
AS_IF([test "$ompi_check_psm2_happy" = "yes"],

Просмотреть файл

@ -323,6 +323,18 @@ ompi_mtl_psm2_component_open(void)
static int
ompi_mtl_psm2_component_query(mca_base_module_t **module, int *priority)
{
/*
* Mixing the PSM2 MTL with the OFI BTL (using PSM2)
* can cause an issue when they both call psm2_finalize
* in older versions of libpsm2.
*/
if (!psm2_get_capability_mask(PSM2_LIB_REFCOUNT_CAP)) {
opal_output_verbose(2, ompi_mtl_base_framework.framework_output,
"This version of the PSM2 MTL needs version 11.2.173 or later of the libpsm2 library for correct operation.\n");
return OMPI_ERR_FATAL;
}
/*
* if we get here it means that PSM2 is available so give high priority
*/