common/ofi: Fix open-mpi/ompi#2519
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>
Этот коммит содержится в:
родитель
0e25c95eae
Коммит
8a67a95c99
@ -19,5 +19,9 @@
|
||||
|
||||
int mca_common_ofi_register_mca_variables(void)
|
||||
{
|
||||
if (fi_version() >= FI_VERSION(1,0)) {
|
||||
return OPAL_SUCCESS;
|
||||
} else {
|
||||
return OPAL_ERROR;
|
||||
}
|
||||
}
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#ifndef 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);
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user