1
1
As discussed in open-mpi/ompi#2519 the common component does not depend
on libfabric yet. This commit introduces this dependency by just calling
fi_version().

Signed-off-by: guserav <erik.zeiske@hpe.com>
Этот коммит содержится в:
guserav 2019-08-12 16:17:59 -07:00
родитель 0e25c95eae
Коммит 8a67a95c99
2 изменённых файлов: 6 добавлений и 1 удалений

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

@ -19,5 +19,9 @@
int mca_common_ofi_register_mca_variables(void) int mca_common_ofi_register_mca_variables(void)
{ {
return OPAL_SUCCESS; if (fi_version() >= FI_VERSION(1,0)) {
return OPAL_SUCCESS;
} else {
return OPAL_ERROR;
}
} }

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

@ -12,6 +12,7 @@
#ifndef OPAL_MCA_COMMON_OFI_H #ifndef OPAL_MCA_COMMON_OFI_H
#define OPAL_MCA_COMMON_OFI_H #define OPAL_MCA_COMMON_OFI_H
#include <rdma/fabric.h>
OPAL_DECLSPEC int mca_common_ofi_register_mca_variables(void); OPAL_DECLSPEC int mca_common_ofi_register_mca_variables(void);